Re: system-properties(), was Re: p:xslt

2008/12/12 Norman Walsh <ndw@nwalsh.com>:

> Try something like this:
>
> <p:xslt name="trsf">
>  <p:parameter name="product-name" select="p:system-property('p:product-name')"/>
>  <p:input port="stylesheet">
>    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>                    version="1.0">
>      <xsl:param name="product-name"/>
>      <xsl:template match="/">
>        <doc><xsl:value-of select="$product-name"/></doc>
>      </xsl:template>
>    </xsl:stylesheet>
> </p:xslt>


<p:xslt name="trsf">
 <p:with-param name="product-name"
select="p:system-property('p:product-name')"/>
 <p:input port="stylesheet">
   <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                   version="1.0">
     <xsl:param name="product-name"/>
     <xsl:template match="/">
       <doc><xsl:value-of select="$product-name"/></doc>
     </xsl:template>
   </xsl:stylesheet>
 </p:input>
</p:xslt>
</p:pipeline>


Is the nearest I've got.

Error  : Pipeline failed: java.lang.IllegalArgumentException:
Unexpected in input: xsl:stylesheet

Suggestions please?

regards


-- 
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk

Received on Friday, 12 December 2008 17:50:21 UTC