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

Getting several instances to be parsed in one variable

Subject: Getting several instances to be parsed in one variable
From: Paul Terray <terray@xxxxxxxxxxxx>
Date: Tue, 13 Nov 2001 12:37:05 +0100
getting a list of instances
Hello to everyone,

I have a simple but very annoying problem. I have an indefinite number of files, whose names are in my parsed instance. I want to get values in all of them, and several times.

I defined therefore a variable, like this :
<xsl:variable name="g_modules">
    <xsl:for-each select="/root/my/filenames">
                <xsl:variable name="l_path">
                        <xsl:value-of select="$p_my_dir"/>
                        <xsl:text>/</xsl:text>
                        <xsl:value-of select="."/>
                        <xsl:text>.xml</xsl:text>
                </xsl:variable>

                <xsl:copy-of select="document($l_dm_path)"/>
    </xsl:for-each>
</xsl:variable>

Now, I want to parse this variable. But each time I use it, I get this message from msxml3 (through msxsl) :
------------
Error occurred while executing stylesheet 'sheet.xsl'.


Code:   0x80004005
Reference to variable or parameter 'g_module' must evaluate to a node list.
-------------

I suppose it is the infamous nose-set/node-list problem, but I want my code to be portable, so I don't want to use any extension to convert one to the other. I thought I could use xsl:apply-templates or xsl:for-each, but I get the error each time. Any ideas ?

Thanks


--
Paul TERRAY - Documents Management Systems Engineer
email : terray@xxxxxxxxxxxx



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.