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

How to chunk to same dir where xml file is

Subject: How to chunk to same dir where xml file is
From: Janning Vygen <vygen@xxxxxx>
Date: Wed, 15 May 2002 11:48:07 +0200
dir to xml
hi,

i like to split my xml files in many subdirectories, because i can 
controll read/write acces with cvs on a per directory basis.

imagine files like this:

xml/book.xml
xml/chapter1/chapter-bar.xml
xml/chapter1/sect1-intro.xml
xml/chapter1/sect1-bla.xml
xml/chapter2/chapterfoo.xml
xml/chapter2/sect1foo.xml
xml/chapter2/sect1bar.xml

I use XInclude to connect between each other and using 
libxml2/xsltproc and docbook-xsl stylesheets to transform them. 

I modified the chunker from docbook to create a chunk filenames like 
"xml/chapter1/chapter1.html". So everything is pushed in the right 
directories.

The filename depends on the document structure. so all my "id" in the 
component tags (chapter/sect1 etc) are combinded to find the 
directory where to place the file.

I dont like it anymore :-) because it depends on that developers 
naming there files like the ids and putting them in the right 
directory

Is there a way to keep the url from xsl:document relative to the 
original xml file?? I heard something about xml:base but maybe thats 
a complete different story. 

At least i think, that the xslt processor doesn't know anthing about 
filesystem structure, right?

I would really like to say something like
xsltproc --stringparam rootid sect2-foo xml/book.xml
and if the tag <sect2 id="sect2-foo"> is in the file
xml/foo/bar/anyname.xml
the ouput file should be
xml/foo/bar/sect2-foo.html

Is this possible?? 

regards 
janning




 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.