[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Re: how to split one xml to multiple xml files

Subject: RE: Re: how to split one xml to multiple xml files
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Wed, 5 May 2004 18:47:11 +0100
split xml with saxon
> 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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.