Sorry, not at this time. What would be cool is if you could just serialize
the stylesheet into a character stream, and get a clean XSLT stylesheet.
I've long wanted to do this, but it has never risen high enough on the
priority list.
Since the StylesheetRoot/Templates object implements a minimal read-only
DOM, you should in theory be able to cast it to a Node, feed it to a
DOMSource, and feed that into a Transformer that was created via
TransformerFactory#newTransformer(), and then transform out to a
StreamResult object. In theory, this should work, but I would bet that it
doesn't. On the other hand, it's probably not too hard to get it working.
How important is this?
-scott
"Steve Hoffman"
<Steve.Hoffman@ To: <[EMAIL PROTECTED]>
pobox.com> cc: (bcc: Scott Boag/CAM/Lotus)
Subject: String repesentation of a
StylesheetRoot object
07/09/2001
10:15 AM
Please respond
to xalan-dev
Hi,
I need to write some code to create a "merged" stylesheet resulting from
composing a source stylesheet and all of its imports and includes. I
thought
that I might be able to use Xalan's templates package to do this, but I
can't figure out how.
Is it possible to get a String repesentation of a StylesheetRoot object?
TIA,
Steve Hoffman