Subject: Re: [xsl] Unique local-name() From: Oleg Tkachenko <olegt@xxxxxxxxxxxxx> Date: Sun, 23 Feb 2003 09:42:52 +0200 |
I'm really stuck on a XPpath problem that should be fairly simple (I think): I need to check if an element that got a unique local-name() among it's siblings. And, I have no way of actually knowing the local-name() when I generate the XPath.
For example: <root> <a /> <b /> <b /> <c /> <c /> <d /> </root>
a and d should pass, the b's and c's shouldn't
To check if element name is unique you can just count elements with such name: <xsl:if test="count(/root/*[local-name()=$name])>1"> -- Oleg Tkachenko Multiconn Technologies, Israel
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Unique local-name(), Niklas Gustavsson | Thread | [xsl] Re: Unique local-name(), Dimitre Novatchev |
[xsl] Import stylesheets in Xalan a, Andrey Guskov | Date | [xsl] Re: Unique local-name(), Dimitre Novatchev |
Month |