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

comparing XML streams / nodesets

Subject: comparing XML streams / nodesets
From: "Martijn" <rootroot@xxxxxxxxx>
Date: Wed, 19 Dec 2001 23:24:39 -0800
comparing xml nodes
Hi Y'all,

I have a question. I've got an XML document containing the following
nodeset:

<rootnode>
    <childnode>
        <grantchildnode1 />
        <grantchildnode2 />
        <grantchildnode3>
            <grantchildnode31 />
            <grantchildnode32 />
        </grantchildnode3>
    </childnode>
</rootnode>

Now in XSL, I have a variable that declares which entities are allowed into
certain functions like this:

<xsl:variable name="allowednodes">
    <rootnode>
        <childnode>
            <grantchildnode1 />
            <grantchildnode3>
                <grantchildnode32 />
            </grantchildnode3>
        </childnode>
    </rootnode>
</xsl:variable>

when iterating through the main XML document, I need to check if the current
node is allowed to pass through to a function.
Essentially, I'd like to say:

<xslt:if test="count(//*//$allowednodes) != 0" />

This ofcourse doesn't work. Does anyone know if and how I can compare the
trees so I can make accurate decisions about allowing a node ???

Thanks in advance!

Regards,
Martijn.


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

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.