Subject: RE: RE: RE: [xsl] Unexpected results when creating an SVG pie chart From: "Josh Canfield" <Josh.Canfield@xxxxxxxxxxxx> Date: Mon, 7 Jun 2004 11:31:55 -0700 |
This is a different problem, unrelated to how for-each works. You are setting the context list to a single node when you call apply-templates, the original poster was not, position() was being called from within the for-each element. Josh -----Original Message----- From: cknell@xxxxxxxxxx [mailto:cknell@xxxxxxxxxx] Sent: Monday, June 07, 2004 11:17 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: RE: RE: RE: [xsl] Unexpected results when creating an SVG pie chart Make this small change to the stylesheet below, run it against the original XML document, and tell me what value is selected for the style attribute. Change this: <xsl:template match="SITES"> <xsl:apply-templates select="SITE"/> </xsl:template> To this: <xsl:template match="SITES"> <xsl:for-each select="SITE"> <xsl:apply-templates select="."/> </xsl:for-each> </xsl:template> Make this small change to the XSLT below and run it against the original XML. Tell me what value you get for the style attribute. -- Charles Knell cknell@xxxxxxxxxx - email
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: RE: RE: [xsl] Unexpected result, cknell | Thread | RE: RE: RE: RE: [xsl] Unexpected re, cknell |
RE: RE: RE: [xsl] Unexpected result, cknell | Date | Re[2]: [xsl] Preserve Line break ?, Arthur Maloney |
Month |