Subject: Re: [xsl] How to generate an XML log using xsl:message? From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx> Date: 27 Dec 2004 10:29:16 +0000 |
>>>>> "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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] How to generate an XML log us, Stefan Wachter | Thread | Re: [xsl] How to generate an XML lo, George Cristian Bina |
[xsl] How to generate an XML log us, Stefan Wachter | Date | Re: [xsl] How to generate an XML lo, George Cristian Bina |
Month |