xsl-list
[Top] [All Lists]

RE: gain data from multiple xml files?

2003-10-07 08:08:55
[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



<Prev in Thread] Current Thread [Next in Thread>