Subject: [xsl] Node Exist From: Jack Dubovski <regmaster@xxxxxx> Date: Mon, 26 May 2003 11:46:31 +0200 (MEST) |
Hello I have the follow problem: Struct: <document> <new> <secobj> <menu> <security-object id="yeah"/> <security-object id="blabla"/> </menu> <content> <security-object id="grggrrgr"/> <security-object id="TESTNODE"/> </content> </secobj> </new> <old> <secobj> <menu> <security-object id="yeah"/> <security-object id="blabla"/> </menu> <content> <security-object id="grggrrgr"/> <security-object id="TESTNODE"/> </content> </secobj> </old> </document> Matched ist <document>... when it runs the follow xsl:if, it is in a for-each and scans every object of old. Now i must know if exist the node in <new>... <xsl:if test="//*/*/*/security-object[@id = 'TESTNODE']"> DOES WORK </xsl:if> <xsl:variable name="node">TESTNODE</xsl:variable> <xsl:if test="//*/*/*/security-object[@id = '$node']"> DOES NOT WORK </xsl:if> Knows everywhere another solution? THX BULE -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage! XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Finding position of specific , Sean Healy | Thread | RE: [xsl] Node Exist, Jarno . Elovirta |
[xsl] Total PAGE number, Marco Pedrini | Date | RE: [xsl] Total PAGE number, Jarno . Elovirta |
Month |