Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: Re: [xsl] how to split one xml to multiple xml files

From: "Michael Kay" <mhk@--------->
To:
Date: 5/5/2004 7:47:00 PM
> My goal is to use the xsl to split a large xml into multple 
> smaller xml
> files and save them on the disk. 
> 
> How can I achieve this goal?  I read about saxon extension 
> saxon:output and
> xsl:result-document.  Which one is good for me for my task?  How can I
> instruct the xsl processor what the directory the output file 
> should be
> saved at using href attributes? and without using -o .

saxon:output was the Saxon extension used in Saxon 6.x to achieve multiple
output files; xsl:result-document is the replacement facility in XSLT 2.0,
which is implemented in Saxon 7.x. The xsl:result-document facility requires
that output files are stored relative to the principal result file; this is
a security precaution to make sure that the stylesheet has access to the
filestore where it is writing. (saxon:output in 6.5.3 doesn't have this
rule, which means it has a security risk if you allow untrusted stylesheets
to run on your machine, which is why there is a flag to disable this
facility, along with extension functions).

I don't know enough about the ant XSLT task to know how you would set this
flag, you may have to call the XSLT processor directly.

Michael Kay


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent