xsl-list
[Top] [All Lists]

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

2009-09-15 12:24:19
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.



--~------------------------------------------------------------------
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>
--~--