xsl-list
[Top] [All Lists]

RE: [xsl] Counting the number of elements within and outputting a variable holding analyze-string results wrapped by elements in a for-each

2009-11-30 08:48:46
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 


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--