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

big problem with node-set vs. RTF and document('') hack... (

Subject: big problem with node-set vs. RTF and document('') hack... (xalan)
From: Jens Lautenbacher <jtl@xxxxxxxxxx>
Date: 13 Apr 2000 03:12:22 +0200
rtf hack
Hi, 

I'm using xalan to process xml to finally html via a cascade of
stylesheets.

Some sample cascade is foo.xml with bar.xsl => baz.xsl 

This baz.xsl will be combined with a data.xml to produce out.html

For some reasons, the intermediate baz.xsl file needs to get 
a part of it's own content as a node-set.

This works as everybody here knows 1) via an extension like xt:node-set 
2) or via the famous document('') hack, which is what I dod as xalan
   doesn't have that extension.

As long as I tried this by hand and offline (that means: generating
the intermediate baz.xsl as a file and then the final out.html)
everthing was good.

Now I implemented a xml/xsl cache which keeps all xml files as parsed
DOM trees, and all XSL files as compliled StylesheetRoot Objects in
memory, either by reading the corresponding files from the filesystem
or by generating intermediate stylesheets from their dependencies (aka
make)

Eerything gos smooth here, just the document('') hack in the
intermediate stylesheet baz.xsl doesn't work anymore... the only
difference is that baz.xsl is never read from a real file, but made
directly from the DOM Tree of foo.xml and the StylesheetRoot of
bar.xsl.

xalan puts out the following warning:

XSL Warning: Can not load requested doc: file:/home/jtl/projects/test/the_servlets
file:/home/jtl/projects/test/the_servlets; Line 2; Column 2

as it happenes, my files all reside in this directory, and if I'd
produce an intermediate file baz.xsl, this would reside there, too.
It seems that xalan somehow can't cpe with the document('') unless it
knows in which file it is currently...

Is there anything I can do???

Is there anyone who has implemented something as a xalan:node-set
extension???

I thought about putting the intermediate baz.xsl back to disk and
parsing from there again.. but I'd rather not of course.

Any help would be very very much appreciated.

        jtl


 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.