[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] xsl:output and xsl:result-document


Subject: Re: [xsl] xsl:output and xsl:result-document
From: Mike Sokolov <sokolov@xxxxxxxxxxxx>
Date: Tue, 15 Sep 2009 12:23:53 -0400

Thanks Martin and Andrew - these are both helpful suggestions. As it turned out in my case, I was able to output text while declaring it to be xml: I didn't think this would work, but apparently at least Saxon will allow you to output an xml document that contains only text: no elements, which is just what I needed.

-Mike

Martin Honnen wrote:
Mike Sokolov wrote:
Is it possible to generate XML documents with xsl:result-document while outputting text as the main stylesheet result? It seems as if xsl:output applies to the whole stylesheet process: both the main result and the xsl:result-document results. Is that right?

No, you can have several xsl:output directives and identify them with a unique name attribute. Then <xsl:result-document format="outputName" ...></xsl:result-document> allows you to reference such an xsl:output directive.


Current Thread
Keywords
xml