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

RE: Fwd: split 1 xml file to N other xml files

Subject: RE: Fwd: split 1 xml file to N other xml files
From: "Josh Canfield" <Josh.Canfield@xxxxxxxxxxxx>
Date: Tue, 27 Jan 2004 08:30:23 -0800
xhtml label
The Xalan way to solve it is with the redirect extension found here:
http://xml.apache.org/xalan-j/extensionslib.html#ex-redirect

or the EXSL way would be to use the exsl:document extension found here:
http://www.exslt.org/exsl/elements/document/index.html

Hope this helps,
Josh
-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of
memala@xxxxxxx
Sent: Tuesday, January 27, 2004 3:16 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Cc: memala@xxxxxxx
Subject:  Fwd: split 1 xml file to N other xml files


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


 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.