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

Fwd: split 1 xml file to N other xml files

Subject: Fwd: split 1 xml file to N other xml files
From: memala@xxxxxxx
Date: Tue, 27 Jan 2004 12:15:38 +0100 (MET)
memala
Hi,
I´m new to xml and I´m not sure if this is the correct mailing list to ask.
My problem is the following (I already searched in Google etc. and couldn´t
find a suitable answer.):
The entire navigation of my homepage is in a single large xml file (it is
esier to maintain).  I want "xalan" (from apache ant http://ant.apache.org)
to
split it into single files.
Then this  single xml files are tranformed to xhtml. I already tried to
solve this with perl but it gets really complicated.
What is the  "xml way" to solve this ?

Thanks and regards 
Emal Alekozai

Example (to make my problem clear):
=====================
<!--Input: navigation.xml-->
<navigation/>
<menu filename="fileA.xml" link="fileA.xhtml" label="A">
       <submenu link="A1.xhtml">Link to A1</submenu>
       <submenu link="A2.xhtml">Link to A2</submenu>
</menu>
<menu filename="fileB.xml" link="fileB.xhtml" label="B">
       <submenu link="B1.xhtml">Link to B1</submenu>
       <submenu link="B2.xhtml">Link to B2</submenu>
</menu>
</navigation>



<!--Output: fileA.xml-->
<navigation/>
<menu link="fileA.xhtml" label="A">
       <submenu link="A1.xhtml">Link to A1</submenu>
       <submenu link="A2.xhtml">Link to A2</submenu>
</menu>
<menu link="fileB.xhtml" label="B">
</menu>
</navigation>



<!--Output: fileB.xml-->
<navigation/>
<menu link="fileA.xhtml" label="A">
</menu>
<menu link="fileB.xhtml" label="B">
       <submenu link="B1.xhtml">Link to B1</submenu>
       <submenu link="B2.xhtml">Link to B2</submenu>
</menu>
</navigation>

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Bis 31.1.: TopMail + Digicam für nur 29 EUR http://www.gmx.net/topmail


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.