- From: Dave Pawson <dave.pawson@gmail.com>
- Date: Fri, 12 Dec 2008 15:25:27 +0000
- To: "XProc Dev" <xproc-dev@w3.org>
>> I started this to get a string back from p:system-property() >> >> Do I have to run an xslt step to obtain this? >> I.e. to use xpath? > > That dpeends, what do you want to do with the string? Initially just have a look at its parameters. Thought I'd try and output a system parameter as a way of using it. Due to the parameter malarky I'm having a great difficulty accessing it! E.g. In a pipeline <p:xslt name="trsf"> <p:input port='stylesheet'> <p:document href="step1.xsl"/> </p:input> <p:input port='parameters' select=""/> </p:xslt> causes an npe from Saxon/calabash. But <p:xslt name="trsf"> <p:input port='stylesheet'> <p:document href="step1.xsl"/> </p:input> </p:xslt> Shows [dpawson@marge tests]$ calabash.sh -i source='step1.xml' step1.xpl Error Cannot find a matching 1-argument function named {http://www.w3.org/ns/xproc}system-property() I have both saxon9-s9api.jar and calabash in my classpath The stylesheet just uses xsl:value-of select="p:system-property('p:product-name')" regards -- Dave Pawson XSLT XSL-FO FAQ. Docbook FAQ. http://www.dpawson.co.uk
Received on Friday, 12 December 2008 15:26:07 UTC