xsl-list
[Top] [All Lists]

[xsl] Matching nodes which contain one attribute with value beginning with "aaa"?

2009-12-10 15:24:13
How do I setup a template which matches only those nodes which contain exactly 
ONE attribute
whose value in turn starts with the pattern "aaa"?

So the following nodes should be matched:

<ns1:somenode myattr="aaabbbccc">...</ns1:somenode>

or

<ns1:somenode myattr:ns2="aaabbbccc">...</ns1:somenode>

but NOT these nodes:

<ns1:somenode myattr="aaabbbccc" secondattr="blah">...</ns1:somenode>
or
<ns1:somenode myattr="bbbaaaccc">...</ns1:somenode>

Ben



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>