Re: [xslt] Xpath on variables?



>   then this is a bug, can you provide a complete styesheet so I debug this
> quickly ?
>

---------------begin--------------------
<?xml version="1.0"  encoding="iso-8859-1"?>
<!-- author: Bernhard Zwischenbrugger -->
<xsl:stylesheet
        version="1.0"
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
        xmlns:libxslt="http://xmlsoft.org/XSLT/namespace">
<xsl:output method="html"/>
 
 
<xsl:template match="/">
        <xsl:variable name="foo">
        <FOO>
                <BAR arg="1">
                test
                </BAR>
        </FOO>
        </xsl:variable>
        ------- this works fine --------
        <xsl:copy-of select="$foo"/>
        ------- this does not work ------
        <xsl:copy-of select="libxslt:node-set($foo)//BAR"/>
        ------- this also does not work ----
        <xsl:copy-of select="$foo//BAR"/>
</xsl:template>
</xsl:stylesheet>
-----------------end----------------------





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]