Page 1 of 1

xsl:result-document for version1.0

Posted: Mon Oct 26, 2009 12:58 am
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

Re: xsl:result-document for version1.0

Posted: Mon Oct 26, 2009 11:47 am
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