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

RE: gain data from multiple xml files?

Subject: RE: gain data from multiple xml files?
From: "Passin, Tom" <tpassin@xxxxxxxxxxxx>
Date: Tue, 7 Oct 2003 11:08:55 -0400
xsltproc multiple files
[Josef El-Rayes]

> i have a file "navigation.xml" from which i create the navigation bar
> and i have multiple .xml files for example "september.xml" and
> "august.xml" from which i generate by using blog.xml a blog.
> 
> i want both the navigation and the blog combined on a website 
> but when i
> call xsltproc with:
> 
> xsltproc -o index.html index.xsl navigation.xml blog.xml it only
> processes the blog part.
> 
> when i change order or leave one of the .xml away, it renders only the
> one xml i used on the commandline.
> when i leave both out i do not get any .html.
> 
> what may i have done wrong?
> 

The command line normally instructs the processor to apply the
stylesheet to one xml file.  That is the result you got.  The usual way
to combine parts of more than one xml file is to use the document()
function to bring in the other xml file(s).  Sometimes the main xml file
becomes no more than a list of the actual xml files to be processed, and
the stylesheet gets them one after the other with document().

Cheers,

Tom P

 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.