Subject: RE: [xsl] Node list question From: "Chris Bayes" <chris@xxxxxxxxxxx> Date: Wed, 26 Sep 2001 16:15:58 +0100 |
xmlns:msxsl="urn:schemas-microsoft-com:xslt" Ciao Chris XML/XSL Portal http://www.bayes.co.uk/xml > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of > mjyoungblut@xxxxxxx > Sent: 26 September 2001 15:24 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: RE: [xsl] Node list question > > > > Chris, > What namespace do I need to declare for this? > Thanks, > Matt > > > > > "Chris Bayes" > > <chris@xxxxxxxx To: > xsl-list@xxxxxxxxxxxxxxxxxxxxxx > .uk> cc: (bcc: > Matthew J. Youngblut/US-Corporate/3M/US) > Subject: RE: > [xsl] Node list question > 09/26/2001 > > 08:41 AM > > Please respond > > to xsl-list > > > > > > > > > > > Matt, > Saxon implements some of the now defunct xslt 1.1 spec which > doesn't differentiate between an rtf and a nodeset. Msxml > used to work the same but lots of people complained that it > didn't conform to the 1.0 spec so they removed it. To get > round the problem you need to use msxml:node-set($MOD_PROD) > > Ciao Chris > > XML/XSL Portal > http://www.bayes.co.uk/xml > > > > -----Original Message----- > > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of > > mjyoungblut@xxxxxxx > > Sent: 26 September 2001 14:13 > > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > > Subject: [xsl] Node list question > > > > > > > > Hi, > > I have a situation where I do the following: <xsl:variable > > name="MOD_PROD"> > > <xsl:call-template name="get-modify-product"> > > <xsl:with-param name="YESTERDAY_PROD" > > select="$YESTERDAY_PROD"/> > > <xsl:with-param name="TODAY_PROD" select="$TODAY_PROD"/> > > </xsl:call-template> > > </xsl:variable> > > <xsl:if test="count($MOD_PROD//child::node()) > 1"> > > <xsl:copy-of select="$MOD_PROD"/> > > </xsl:if> > > > > > > This template creates a product and populates it accordingly: > > <xsl:template name="get-modify-product"> > > <xsl:param name="YESTERDAY_PROD"/> > > <xsl:param name="TODAY_PROD"/> > > > > <Product Action="M"> > > ... Populate Product based on the $TODAY_PROD and > > $YESTERDAY_PROD > > </Product> > > </xsl:template> > > > > > > Using Saxon, I never got an error. Now, trying to use > MSXML gives me > > the following error: > > Reference to variable or parameter 'MOD_PROD' must > evaluate to a > > node list. > > > > What is the difference between Saxon and MSXML on this? > How can I go > > about resolving this? > > > > Thanks in advance, > > Matt Youngblut > > > > > > XSL-List info and archive: > http://www.mulberrytech.com/xsl/xsl-list > > > > > > > XSL-List info > and archive: http://www.mulberrytech.com/xsl/xsl-list > > > > > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Node list question, mjyoungblut | Thread | [xsl] Need 'new line' in list, Linda Zammit |
RE: [xsl] Embedded Stylesheets, Michael Kay | Date | RE: [xsl] Node list question, Michael Kay |
Month |