|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: How to generate an XML log using xsl:message?
>>>>> "Stefan" == Stefan Wachter <Stefan.Wachter@xxxxxx> writes:
Stefan> Hi all, I would like to generate an XML log using
Stefan> xsl:message instructions. The problem is that I am not
Stefan> able to generate well formed XML. Each xsl:message
Stefan> instruction can generate an element in the output. Yet, I
Stefan> am not able to enclose the output of the various
Stefan> xsl:message instructions inside a document root element.
Stefan> Does anyone have a solution for this problem? At the
Stefan> moment I can only think about concatenating the output
Stefan> with a starting "<root>" and ending "</root>".
I can think of a number of approaches.
1) Don't write XML. Post-process the output to produce XML.
2) If your XSLT processor gives you the ability to trap xsl:message
output, use that to generate XML from the message text.
3) If you can use XSLT 2.0, then don't use xsl:message, use
xsl:result-document. Alternatively, if you have to use XSLT 1.0,
but your processor supports EXSLT document, use that,
I think I'll stop here.
--
Colin Paul Adams
Preston Lancashire
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








