Re: [xsl] Split XML file into seperate files with XSLT and ANT

Subject: Re: [xsl] Split XML file into seperate files with XSLT and ANT
From: "M. David Peterson" <m.david.x2x2x@xxxxxxxxx>
Date: Sun, 5 Dec 2004 05:09:58 -0700
Hi Robert,

As far as I can tell it doesn't look like you received an answer on
this...  While that may be because its more directed towards Ant
capability than XSLT capability there is the consideration of using
Saxon 8.x and XSLT 2.0's xsl:result-document for outputting multiple
files from the same transformation process.  Theres nothing more that
has to be done from your Ant process as you're simply implementing a
single transformation process in the same way you are probably doing
it now... the only difference will be in your stylesheet and
potentially the processor you are referencing if you're not already
using Saxon 8.x.

Hope this helps!

<M:D/>


On Fri, 3 Dec 2004 15:08:07 +0100, Robert Soesemann
<rsoesemann@xxxxxxxxxxx> wrote:
> Hello,
> 
> I don't know if there is a standard way to do this, but maybe you have
> an idea.
> 
> I have many XML files which hold multiple XML fragments of a specific
> type <contentitem>..</contentitem> For an easy import of those seperate
> contentitems into a CMS it would be better to split those fragments up
> into different file (one contentitem per file).
> 
> As I am doing this inside an ant pipeline, I wonder if there is an
> elegant way to do this with a mixture of XSLT and other file tasks?
> 
> Can you help,
> 
> Robert
> 
> 


-- 
<M:D/>

:: M. David Peterson
:: XML & XML Transformations, C#, .NET, and Functional Languages Specialist
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

Current Thread