[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Node Exist

Subject: Node Exist
From: Jack Dubovski <regmaster@xxxxxx>
Date: Mon, 26 May 2003 11:46:31 +0200 (MEST)
node exist
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
  • Node Exist
    • Jack Dubovski - Mon, 26 May 2003 05:47:09 -0400 (EDT) <=
      • <Possible follow-ups>
      • Jarno . Elovirta - Mon, 26 May 2003 06:01:32 -0400 (EDT)

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.