How Do I : Single XSLT to Multiple Output Files

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to generate multiple output files while transforming a single XML file
with an XSLT. I generate a node list of a certain element type, then
generate a new file for each element based on that element's attributes,
value and children.

I've done this via Java with <saxon:output> element in Saxon's XSLT
extension, but I'm not sure how to do it in C#/.NET. Assuming I use an
extension object, what do I have to modify in the C# class to create a new
output file? Does it have to do with creating a new XmlTextWriter object?
If so, how do you get a hold of that beast?
 
Looks like just what I need. I figured someone had done this before, I just
couldn't find it. Thanks for the pointer.

spj

Angelos Karantzalis said:
I think Mr Katchenko has that covered :]

http://www.tkachenko.com/dotnet/multixmltextwriter.html

If that doesn't cover you 100% I'm sure that with a little fiddling you'll
get what you want done. take a look at his other .NET XML goodies, they're
really useful I think.

Angel
O:]

spjewett said:
I need to generate multiple output files while transforming a single XML file
with an XSLT. I generate a node list of a certain element type, then
generate a new file for each element based on that element's attributes,
value and children.

I've done this via Java with <saxon:output> element in Saxon's XSLT
extension, but I'm not sure how to do it in C#/.NET. Assuming I use an
extension object, what do I have to modify in the C# class to create a new
output file? Does it have to do with creating a new XmlTextWriter object?
If so, how do you get a hold of that beast?
 
Back
Top