W3C home > Mailing lists > Public > public-xml-processing-model-wg@w3.org > October 2010

Re: p:xslt bug?

From: Alex Milowski <alex@milowski.org>
Date: Mon, 4 Oct 2010 06:56:04 -0700
Message-ID: <AANLkTinc2kBY6vqsS3phPKKYPBVm+Q9dhiv9cL_UFGa_@mail.gmail.com>
To: public-xml-processing-model-wg@w3.org
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

Bertrand Russell in a footnote of Principles of Mathematics
Received on Monday, 4 October 2010 14:01:53 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:32:48 UTC