473,320 Members | 1,887 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

How Do I : Single XSLT to Multiple Output Files

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?
Nov 22 '05 #1
2 2423
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" <sp******@discussions.microsoft.com> wrote in message
news:9D**********************************@microsof t.com...
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?

Nov 22 '05 #2
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" wrote:
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" <sp******@discussions.microsoft.com> wrote in message
news:9D**********************************@microsof t.com...
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?


Nov 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: googlinggoogler | last post by:
Hiya, The title says it all really, but im a newbie to python sort of. I can read in files and write files no probs. But what I want to do is read in a couple of files and output them to one...
5
by: SA Dev | last post by:
Hi, I just finished writing something to make a help file for a Pocket PC device. The Pocket PC device allows not really showing the .HTM file as a long single file, but instead uses a tag to...
2
by: spjewett | last post by:
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...
7
by: Harolds | last post by:
The code below worked in VS 2003 & dotnet framework 1.1 but now in VS 2005 the pmID is evaluated to "" instead of what the value is set to: .... xmlItems.Document = pmXML // Add the pmID...
4
by: David S. Alexander | last post by:
How can I do simple subtraction in an XSLT. I want to read a few attribute values from an XML document, calculate their difference, and transform that value to an attribute in the XML output...
7
by: HP17 | last post by:
I’m able using Javascript to transform a XML file using XSLT to a nice HTML output. What I need to do now is to combine two XML files and transform them together using XSLT. Here an abstract example:...
1
by: Sandeep Singh | last post by:
Hi, How to do group by in XSLT ? I tried on the following codes: <files> <file name="swablr.eps" size="4313" project="mars"/> <file name="batboy.wks" size="424" ...
3
by: Tim | last post by:
Hi Folks, I'm used to a UNLOAD command that allows me to dump to a named flat file the results of any SELECT statement. Hence one can build a single SQL file which contains multiple SQL...
1
by: saritha2008 | last post by:
Hi, I have to convert the following Input xml code to output xml code using xslt. Can any one please help on escaping single quotation present in the input xml file in my xslt? ...
6
by: John Larson | last post by:
Hi All, I am some information from INSPEC database records in XML to build a relational database of my own. I am currently trying to extract information by doing an XSLT transform of the XML...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.