W3C home > Mailing lists > Public > xproc-dev@w3.org > April 2010

The law of unintended consequences

From: Norman Walsh <ndw@nwalsh.com>
Date: Fri, 16 Apr 2010 13:12:38 -0400
To: XProc Dev <xproc-dev@w3.org>
Message-ID: <m2ochj9v95.fsf@nwalsh.com>
This pipeline fails. Without running it, can you figure out why?

<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" version="1.0"
                xmlns:c="http://www.w3.org/ns/xproc-step"
                exclude-inline-prefixes="c"
                name="main">

<p:input port="parameters" kind="parameter"/>
<p:output port="result"/>

<p:xslt>
  <p:input port="source">
    <p:inline><doc/></p:inline>
  </p:input>

  <p:input port="stylesheet">
    <p:inline>
      <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                      xmlns:c="http://www.w3.org/ns/xproc-step"
                      version="1.0">

        <xsl:template match="/">
          <xsl:element name="c:wrapper">
            <xsl:apply-templates/>
          </xsl:element>
        </xsl:template>
      </xsl:stylesheet>
    </p:inline>
  </p:input>
</p:xslt>

</p:declare-step>

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | Language is by its very nature a
http://nwalsh.com/            | communal thing; that is, it expresses
                              | never the exact thing but a
                              | compromise--that which is common to
                              | you, me, and everybody.--T. E. Hulme

Received on Friday, 16 April 2010 17:13:14 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 16 April 2010 17:13:15 GMT