Subject: [xsl] xml data in a param? From: "Calvados Boulard" <calvados.boulard@xxxxxxxxx> Date: Thu, 1 May 2008 13:43:22 -0700 |
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.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] RE: Trouble with Excel spread, Hewitt, Cheryl | Thread | Re: [xsl] xml data in a param?, David Carlisle |
[xsl] Trouble with Excel spreadshee, Hewitt, Cheryl | Date | Re: [xsl] xml data in a param?, David Carlisle |
Month |