On Tuesday, 04/30/2002 at 09:22 ZE2, "Stefan Geelen"
<[EMAIL PROTECTED]> wrote:
> sorry if I was not clear reagarding the href attribute.
> I just meant that the xml file contains a reference to the xsl file, as
in:
> <?xml-stylesheet href="invoice.xsl" type="text/xsl"?>

It'd have been clearer to say that you were using an xml-stylesheet
processing instruction.

I don't know whether Xalan actually has the ability to look up stylesheets
automagically using that PI. I'd be somewhat surprised, given the order in
which we usually process data (prepare the stylesheet first, then process
the source document)... so it sounds like if this is implemented, it's
being handled by code that runs before Xalan is handed the document. True?

If so, then yes, you've got issues of rewinding the stream, or reopening
it... or parsing the source document into a DOM and having us read from
that... or running it through some form of SAX buffering scheme and then
feeding us the output of that buffer. If I was implementing this, I'd be
inclined to try the latter, and simply assert that this PI had to be within
the first N sax events of the document (to limit the maximum buffer size
required)...



Reply via email to