"Stefan" == Stefan Wachter <Stefan(_dot_)Wachter(_at_)gmx(_dot_)de>
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
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--