XSLT question (passing parameters)
by David Craig other posts by this author
Nov 19 2005 4:44AM messages near this date
view in the new Beta List Site
Re: Repeated RSS elements
|
Re: XSLT question (passing parameters)
& XSLT Hello all,
I'm having a problem with passing in external parameters... I've tried
several transformation engines (komodo built in, XML::LibXSLT) to no
avail, so I think I'm making a mistake in the code. A really simple
example is this:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:param name="x"/>
<xsl:template match="/">
<xsl:text> |</xsl:text><xsl:value-of select="$x"
/> <xsl:text>|</xsl:text>
</xsl:template>
</xsl:stylesheet>
I would expect to get "|valueofx|" but instead I get "||"
Am I being stupid?
Thanks for your help!
--David Craig
_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
David Craig
Lars Haugseth
A. Pagaltzis
Stephane Roux
A. Pagaltzis
|