Skip to main content
1-Visitor
January 13, 2011
Question

Bug??

  • January 13, 2011
  • 3 replies
  • 952 views
I've been testing an ACL script that uses the function inside_tag(). It
seems to have a bug. If I test for an element name that has a 'dot' in the
name (e.g., <dtd.frag>) it will not recognize when it is inside the tag.
I've tested this with a couple of different element names both in the script
and from the command line and get the same result which is a failure.



Has anyone else found this to be true? And if so does anyone have a work
around.



Many thanks.



Lynn

    3 replies

    18-Opal
    January 13, 2011
    Hi Lynn-



    What version are you using? I just tried this with 5.4 M050 and it seems
    to work OK. I did a freeform XML document with <document.root> as the
    root element and <para.graph> as a child. With the cursor inside the
    <para.graph> element, inside_tag() returns 1 for both "document.root"
    and "para.graph".



    As a workaround, the help for inside_tag() says "If you have applied an
    alias map to the document, tagname can be an alias, as well as a real
    name." So maybe you could define an alias to your <x.y> element name and
    test for that?



    --Clay


    1-Visitor
    January 13, 2011

    LynnHales1-VisitorAuthor
    1-Visitor
    January 13, 2011
    Paul you know me too well. 😄

    That was it. When I delimited the element name, it works as advertised.

    Thanks

    Lynn
    ---- "Grosso wrote:
    >
    >
    >