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 16:48:25 +0000
Message-ID: <711a73df0812120848wda5ba07u2f119f0a457e5e1f@mail.gmail.com>
To: "XProc Dev" <xproc-dev@w3.org>

2008/12/12 Norman Walsh <ndw@nwalsh.com>:
> "Dave Pawson" <dave.pawson@gmail.com> writes:

>> <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()
>
> Have you tried to use p:system-property *inside* the XSLT stylesheet?
> That won't work.
>
> Try something like this:

>> The stylesheet just uses xsl:value-of
>> select="p:system-property('p:product-name')"
>
> Yeah. You can't do that. The XProc extension functions aren't available
> *inside steps* they're only available in the pipeline.


I'll tentatively say that isn't clear from the rec.... until someone points
out where it is stated :-)


regards




-- 
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk
Received on Friday, 12 December 2008 16:49:00 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 12 December 2008 16:49:01 GMT