|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] xml data in a param?
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.
|
Back To School Sale!Save 30% off all Stylus Studio 2008 Products when you purchase from our Online Shop. Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|






