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

p:xslt bug?

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

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 09:22:01 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 4 October 2010 09:22:01 GMT