Subject: [xsl] Fwd: split 1 xml file to N other xml files From: memala@xxxxxxx Date: Tue, 27 Jan 2004 12:15:38 +0100 (MET) |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XSLT + SAX, George Cristian Bina | Thread | RE: [xsl] Fwd: split 1 xml file to , Josh Canfield |
[xsl] Reviewing the Last call XSLT/, Jim Fuller | Date | Re: [xsl] XSLT + SAX, Robert Koberg |
Month |