[oXygen-user] Transformation output

Stefan Krause
Sun Mar 13 09:51:23 CDT 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Shannon

I assume that you set the href-attribut of xsl:result-document relative
(e.g. "href='result.xml' "), and that your scenarios have different
settings for the output destination. The xslt processor resolves the
output destination of xsl:result-document relative to the main output
destination [1], so identical explicit (absolute) settings for the
output destination should solve your problem. Oxygen provides some
editor variables like ${cfdu} and ${cfn} to make this comfortable.

BTW: I prefer the use of absolute URIs within stylesheets, because they
are much clearer and predictable then relative ones in defining output
targets. Within a stylesheet, you can use base-uri() or document-uri()
for calculating absolute URIs relative to the input or the stylesheet.
If you want to use instead a stylesheet parameter, you can use Oxygen's
editor variables as well.

Stefan


[1] http://www.w3.org/TR/xslt20/#element-result-document
"The base URI of the document node at the root of the final result tree
is based on the effective value of the href attribute. If the effective
value is a relative URI, then it is resolved relative to the base output
URI."



Am 10.03.2011 19:43, schrieb Shannon:
> 
> Hi,
> 
> On this box, I have a transformation scenario configured with the XSL URL on a shared network drive and the XML URL on my local file system; when I transform, the stylesheet calls xsl:result-document to output many new documents, and the output is created in the same working directory as the _XSL_ URL. However, on another box, using an almost identical setup (Oxygen 12.0, OS X 10.6.6, Java 1.6.0_24, Saxon-PE 9.1.2.1), the output is created in the same working directory as the _XML_ URL. I don't see a way in the GUI to configure this--it would be awesome if the Output tab would allow me to specify the output destination (currently if I choose "Prompt for file", it will only work for the _first_ file handled by xsl:result-document). Can you assist, or may I submit a request for future enhancement?
> 
> Thanks,
> Shannon
> 
> --
> Shannon Scott ()
> Developer, University of Virginia Press
> Box 400318, Charlottesville, VA 22904-4318
> 
> Books: http://www.upress.virginia.edu
> Digital: http://rotunda.upress.virginia.edu
> Facebook: http://www.facebook.com/uvapress
> Twitter: http://twitter.com/uvapress
> 
> 
> 
> 
> _______________________________________________
> oXygen-user mailing list
> 
> http://www.oxygenxml.com/mailman/listinfo/oxygen-user
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk182esACgkQ6m+l2LO+BGxa2QCg9sw53bcFP3wQY+3BPNT2tgNh
KXYAn3xJ1lyWAHJ/S1PD9PqnBmHSDTaS
=dkVq
-----END PGP SIGNATURE-----



More information about the oXygen-user mailing list