Subject: RE: 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
|