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

Re: A valid pipeline?

From: Henry S. Thompson <ht@inf.ed.ac.uk>
Date: Mon, 19 Mar 2007 18:08:44 +0000
To: Norman Walsh <Norman.Walsh@Sun.COM>
Cc: public-xml-processing-model-wg@w3.org
Message-ID: <f5bhcshjec3.fsf@hildegard.inf.ed.ac.uk>

-----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-----
Received on Monday, 19 March 2007 18:09:30 GMT

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