|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Testing the name of parent node
Hello Ragulf,
Ragulf Pickaxe wrote: Hello all, the solution: <xsl:if test="not(ancestor::a)"> no a above me in the tree </xsl:if> <xsl:if test="not(ancestor::*[name() = 'a'])"> the same here </xsl:if> I tried looking at the name() funktion, but the explanation was not very clear to me (Michael Kay's book, 2nd edition), and I don't know if this is the right track at all. the explanation: name() returns the complete name of an element. So a <a/> in input returns the string 'a', <html:a/> returns 'html:a' and so on. I really would appreciate some pointers. Regards, Joerg XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








