Re: p:xslt bug?

On Mon, Oct 4, 2010 at 2:19 AM,  <vojtech.toman@emc.com> wrote:
> Hi all,
>
> Since the "result" output port of the p:xslt step is declared as
> non-sequence, what happens when you run p:xslt with the following
> stylesheet?
>
> <xsl:stylesheet version="2.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>  <xsl:template match="/">
>    <xsl:result-document href="doc.xml">
>      <foo/>
>    </xsl:result-document>
>  </xsl:template>
> </xsl:stylesheet>
>
> Clearly, the above transformation produces only one result document, and
> it will appear on the "secondary" output port (because of
> xsl:result-document was used). There will be no document the "result"
> output port can be bound to...

That should produce an XD0007 error.

You'd have to modify the XSLT to get rid of the error and produce
a dummy document on the 'result' port.

I've been caught by this as well and had to do the above.  I'm not sure
if there is much we can do about it.

-- 
--Alex Milowski
"The excellence of grammar as a guide is proportional to the paucity of the
inflexions, i.e. to the degree of analysis effected by the language
considered."

Bertrand Russell in a footnote of Principles of Mathematics

Received on Monday, 4 October 2010 14:01:53 UTC