Subject: RE: [xsl] Counting the number of elements within and outputting a variable holding analyze-string results wrapped by elements in a for-each From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Mon, 30 Nov 2009 13:48:22 -0000 |
> What am I doing wrong and is there a better way to do this? > You're creating an element with empty content: > > <xsl:element name="section"> > <xsl:attribute name="href" select="regex-group(1)"/> > </xsl:element> and then accessing its content: > <xsl:for-each select="$varAnalyzeStr"> > <xsl:value-of select="."/> > </xsl:for-each> Perhaps you intended select="@href"? Regards, Michael Kay http://www.saxonica.com/ http://twitter.com/michaelhkay
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Counting the number of el, Martin Honnen | Thread | Re: [xsl] Counting the number of el, David Carlisle |
Re: [xsl] Counting the number of el, Martin Honnen | Date | Re: [xsl] Counting the number of el, David Carlisle |
Month |