xsl:result-document for version1.0

Here should go questions about transforming XML with XSLT and FOP.
jsail
Posts: 4
Joined: Thu Dec 25, 2008 7:00 pm

xsl:result-document for version1.0

Post by jsail »

In Oxygen I have written a xslt to translate invoice_responces xml's in to text-files wich are named after the invoice_id found inside the invoice_responce.xml
This workes well with xsl:result-document href
The problem is, that the batch-process in the productive cmd envoirement uses 'xsltproc.exe'. This exe-file only supports version 1.0

I get this error message:
xsltStylePreCompute: unknown xsl:result-document
compilation error: file responce_error_code_txt.xsl line 2 element stylesheet
xsl:version: only 1.0 features are supported

Is there in version 1.0 a possibility to name the translates text-files?
Or does anybody know an cmd 'xsltproc.exe' that supports version 2 features?

Thank you for your help

Joseph
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: xsl:result-document for version1.0

Post by sorin_ristache »

Hello,

In XSLT 1.0 you can create multiple output files only with an XSLT extension. Xsltproc does not have a built-in extension for that but you can implement your own Xsltproc extension. Other option is using an XSLT 1.0 processor that has a built-in extension for creating multiple output documents like Saxon 6.5.


Regards,
Sorin
Post Reply