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

Re: A valid pipeline?

From: Innovimax SARL <innovimax@gmail.com>
Date: Mon, 19 Mar 2007 19:23:55 +0100
Message-ID: <546c6c1c0703191123q793114c3nbb48fe94e9c0750c@mail.gmail.com>
To: "Henry S. Thompson" <ht@inf.ed.ac.uk>
Cc: "Norman Walsh" <Norman.Walsh@sun.com>, public-xml-processing-model-wg@w3.org

Henri

In your example, the output of the XSLT2 is empty (all is in the
http://some-imaginary-dns-name.tld/document)

And don't see how it solves the problem ?!

Mohamed

On 3/19/07, Henry S. Thompson <ht@inf.ed.ac.uk> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Note that on my proposal we no longer need Alex's
> xinclude-from-sequence step -- Norm's example can be rewritten given
> my proposal to illustrate how this would work:
>
> <p:pipeline xmlns:p="http://www.w3.org/2007/03/xproc"
>             xmlns:xi="http://www.w3.org/2001/XInclude">
> <p:output port="result"/>
>
> <p:xslt2 name='s1'>
>   <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:xs="http://www.w3.org/2001/XMLSchema"
>                       exclude-result-prefixes="xs"
>                       version="2.0">
>
>         <xsl:output method="xml"/>
>
>         <xsl:template match="/">
>           <xsl:result-document href="http://some-imaginary-dns-name.tld/document">
>             <chapter>
>               <title>Chapter Title</title>
>               <para>Some paragraph.</para>
>             </chapter>
>           </xsl:result-document>
>         </xsl:template>
>       </xsl:stylesheet>
>     </p:inline>
>   </p:input>
> </p:xslt2>
>
> <p:group>
>  <p:input port='cache'>
>   <p:pipe port='result' step='s1'/>
>  </p:input>
>
>   <p:xinclude>
>     <p:input port="source">
>       <p:inline>
>         <document>
>           <title>Document Title</title>
>           <xi:include href="http://some-imaginary-dns-name.tld/document"/>
>         </document>
>       </p:inline>
>     </p:input>
>   </p:xinclude>
> </p:group>
>
> </p:pipeline>
>
> Note that 'cache' would be as-it-were a _secondary_ input to p:group
> - -- the defaulting story would be that the 'cache' port does _not_ get
> input by default, rather that the default readable port is passed in
> to be the default for the first step inside the group.
>
> ht
> - --
>  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
>                      Half-time member of W3C Team
>     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
>             Fax: (44) 131 650-4587, e-mail: ht@inf.ed.ac.uk
>                    URL: http://www.ltg.ed.ac.uk/~ht/
> [mail really from me _always_ has this .sig -- mail without it is forged spam]
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.6 (GNU/Linux)
>
> iD8DBQFF/tGskjnJixAXWBoRAphTAJ9yKYYnnWn1V9bwKU6K3ZCkChxaqQCfaPxD
> 46YzZdSK7WQ3JFAnUSWsauE=
> =Lz9A
> -----END PGP SIGNATURE-----
>
>


-- 
Innovimax SARL
Consulting, Training & XML Development
9, impasse des Orteaux
75020 Paris
Tel : +33 8 72 475787
Fax : +33 1 4356 1746
http://www.innovimax.fr
RCS Paris 488.018.631
SARL au capital de 10.000 
Received on Monday, 19 March 2007 18:24:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:21:50 GMT