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

Re: The law of unintended consequences

From: Rob Koberg <rob@koberg.com>
Date: Fri, 16 Apr 2010 10:27:59 -0700
Message-ID: <y2vee5a19161004161027m536ef9e6m48a6afd25125fdb9@mail.gmail.com>
To: Norman Walsh <ndw@nwalsh.com>
Cc: XProc Dev <xproc-dev@w3.org>
How about the exclude-inline-prefixes="c" in p:declare-step because it
is interpreted differently than literal result elements?

-Rob


On Fri, Apr 16, 2010 at 10:12 AM, Norman Walsh <ndw@nwalsh.com> wrote:
> 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:28:32 GMT

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