W3C home > Mailing lists > Public > xproc-dev@w3.org > December 2008

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

From: Dave Pawson <dave.pawson@gmail.com>
Date: Fri, 12 Dec 2008 17:49:35 +0000
Message-ID: <711a73df0812120949k1736d943u723077a22ea48578@mail.gmail.com>
To: "XProc Dev" <xproc-dev@w3.org>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 12 December 2008 17:50:21 GMT