xsl-list
[Top] [All Lists]

[xsl] xml data in a param?

2008-05-01 13:43:50
Hello all...

ok...i'm kinda stupid...I'm trying to pass xml data into my xslt as a
param, and for testing purposes declaring it statically in my xslt..

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
        <xsl:param name="siteIDString" select="'<?xml
version="1.0"?><favs><site
id='11111111'><doc>00000008</doc><doc>00000002</doc><doc>00000005</doc><doc>11111114</doc><doc>14564444</doc><doc>14564442</doc><doc>00000004</doc></site><site
id='1'><doc>1</doc><doc>22</doc></site></favs></xsl:param>'"/>
        <xsl:variable name="siteDoc" select="document($siteIDString)"/>

        <xsl:template match="/">
                <xsl:apply-templates select="aspect"/>
        </xsl:template>

        <xsl:template match="aspect">
                <favorite>
                        <xsl:for-each select="site">
                                <xsl:choose>
                                        <xsl:when test="@id = 
$siteDoc//site/@id">
                                                <xsl:apply-templates select="." 
mode="goodSite"/>
                                        </xsl:when>
                                </xsl:choose>
                        </xsl:for-each>
                </favorite>
        </xsl:template>

I keep getting an error that the "<" character is not allowed as
within a select...

Sorry if this is an elementary question...

Thanks for the help...

Cal.

--~------------------------------------------------------------------
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>
--~--

<Prev in Thread] Current Thread [Next in Thread>