Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / XML / July 2006

Tip: Looking for answers? Try searching our database.

Creating multiple documents

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sham - 14 Jul 2006 18:03 GMT
Hi to all,

I am using XALAN processor and xslt 2.0 and I have managed to take an XML
file and split it into multiple documents. This is done via the Oxygen
editor.

I now need to write a C# program that will take the XML and XSLT file as
inputs and transform the XML file.

Any clues on how to get started would be appreciated.

Sham.
Martin Honnen - 14 Jul 2006 18:10 GMT
> I am using XALAN processor and xslt 2.0 and I have managed to take an XML
> file and split it into multiple documents. This is done via the Oxygen
> editor.

Does Xalan support XSLT 2.0? I don't think so. Saxon 8 does support XSLT
2.0.

> I now need to write a C# program that will take the XML and XSLT file as
> inputs and transform the XML file.

If you really want to use XSLT 2.0 with .NET then you need to install
Saxon.NET from http://www.saxonica.com/.

If all you need is to create multiple output files then EXSLT.NET can
help: <http://www.xmlmvp.org/exslt/index.html#multiout>

Signature

    Martin Honnen --- MVP XML
    http://JavaScript.FAQTs.com/

sham - 14 Jul 2006 18:31 GMT
Hi Martin,

Sorry you were right, it is Saxon I used and not Xalan.

The example I have seen with C# use an xmlWriter. Since the files are
created by the processor, what classes do I use.

Thanks

Sham.

>> I am using XALAN processor and xslt 2.0 and I have managed to take an XML
>> file and split it into multiple documents. This is done via the Oxygen
[quoted text clipped - 11 lines]
> If all you need is to create multiple output files then EXSLT.NET can
> help: <http://www.xmlmvp.org/exslt/index.html#multiout>
Martin Honnen - 14 Jul 2006 19:06 GMT
> The example I have seen with C# use an xmlWriter. Since the files are
> created by the processor, what classes do I use.

I have made two suggestions, either to try Saxon.NET or to use EXSLT.NET.
If you install EXSLT.NET then you can use the MvpXslTransform class
documented here:
<http://mvp-xml.sourceforge.net/api/2.0/T_Mvp_Xml_Common_Xsl_MvpXslTransform_Memb
ers.html
>

Signature

    Martin Honnen --- MVP XML
    http://JavaScript.FAQTs.com/


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.