cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

We are troubleshooting an issue impacting community login, and it may be intermittently unavailable. Sorry for any inconvenience.

Bug??

LynnHales
1-Newbie

Bug??

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 3

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



Paul you know me too well. 😄

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

Thanks

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

Top Tags