RE: p:xslt bug?

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