Hello,

I have a situation where I want the value of a <xsl:param> to be used as part of an xpath expression.

I've tried a number of different ways but I get the following error message:
javax.xml.transform.TransformerException: A location step was expected following the '/' or '//' token.

Is there a way to do this?

Thanks you for any help on this.

Below, is all the pertinent information concerning this:

Xalan Java 2.5.0

<?xml version="1.0" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >

<xsl:param name="resource"/>

<xsl:template match="/">
<xsl:copy-of select="//$resource)"/>
</xsl:template>

</xsl:stylesheet>



Command line I'm trying to run:

java org.apache.xalan.xslt.Process -in site.xml -xsl site.xsl -out index.html -param resource textblock

Reply via email to