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

RE: p:xslt bug?

From: <vojtech.toman@emc.com>
Date: Mon, 4 Oct 2010 11:27:06 -0400
Message-ID: <997C307BEB90984EBE935699389EC41C0261250A@CORPUSMX70C.corp.emc.com>
To: <public-xml-processing-model-wg@w3.org>
> > 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.

OK, that sounds reasonable. But it also means that we will have to fix the test:

http://tests.xproc.org/tests/required/xslt-006.xml

because it does exactly what I had described earlier (no primary result document), but it is expected to pass (it is actually testing a different feature). 

Regards,
Vojtech


--
Vojtech Toman
Consultant Software Engineer
EMC | Information Intelligence Group
vojtech.toman@emc.com
http://developer.emc.com/xmltech
Received on Monday, 4 October 2010 15:29:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 4 October 2010 15:29:03 GMT