This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
xsl:param and MSXML
- From: "Aedemar Cooke" <Aedemar dot Cooke at kadius dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Thu, 14 Mar 2002 15:28:41 -0000
- Subject: [xsl] xsl:param and MSXML
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi,
I want to read a parameter from the URL and use it in my stylesheet as
displayed below
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
<xsl:param name="element"/>
<xsl:template match="/">
<xsl:apply-templates select="/content/*[name()=$element]"
mode="wysiwyg"/>
</xsl:template>
<xsl:template match="element1">
<xsl:copy-of select="."/>
</xsl:template>
<xsl:template match="element2">
<xsl:copy-of select="."/>
</xsl:template>
</xsl:stylesheet>
I was using a cocoon parser to parse by XSL and my code worked fine but
then had to change to use MSXML.
Can anyone tell me how to implement it so that it will work with MSXML.
Thanks,
Aedemar
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list