Re: The law of unintended consequences

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 UTC