[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

xml data in a param?

Subject: xml data in a param?
From: "Calvados Boulard" <calvados.boulard@xxxxxxxxx>
Date: Thu, 1 May 2008 13:43:22 -0700
 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.

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.