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

Re: node-set = node-set involving variable fails

Subject: Re: node-set = node-set involving variable fails
From: Roger Glover <glover_roger@xxxxxxxxx>
Date: Fri, 8 Nov 2002 14:09:50 -0800 (PST)
xsl node set
I discovered the "nodeset()" extension function in Xalan, so now my joy is
complete, even though my XSLT Recommendation compliance is not.

For anyone who cares, here is what the transform looks like now:
===========================================
<xsl:variable name="targets">
    <target>target1</target>
    <target>target2</target>
        <!-- ...... -->
    <target>target93</target>
</xsl:variable>

<xsl:template match="/dataset">
    <xsl:copy>
        <xsl:apply-templates
select="table[ row[ value = xalan:nodeset($targets)/target ] ]"
        />
    </xsl:copy>
</xsl:template>

<xsl:template match="table">
    <xsl:message>Table Name:  <xsl:value-of select="@name"/></xsl:message>
    <xsl:copy>
        <xsl:copy-of select="@*"/>
        <xsl:copy-of select="column"/>
        <xsl:copy-of select="row[ value = xalan:nodeset($targets)/target ]"/>
    </xsl:copy>
</xsl:template>
===========================================


=====
-- Roger Glover

   "Have you ever noticed, it's 'a penny for your thoughts',
    but you put in your 'two cents worth'?....
    Somebody somewhere is making a penny."
            - Steven Wright

__________________________________________________
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2

 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.