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

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 UTC