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

Re: New draft: 3 Jan 2008

From: Henry S. Thompson <ht@inf.ed.ac.uk>
Date: Tue, 08 Jan 2008 17:00:42 +0000
To: Norman Walsh <ndw@nwalsh.com>
Cc: public-xml-processing-model-wg@w3.org
Message-ID: <f5bmyrgz1z9.fsf@hildegard.inf.ed.ac.uk>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Norman Walsh writes:

> At the very least, I think we may want to simplify our first couple of
> examples so that they can be written with p:pipeline.

I suggest the following for figs 1 and 2:

<p:declare-step xmlns:p="http://www.w3.org/ns/xproc"
                xmlns:px="http://example.org/ns/pipelines"
                type="px:xinclude-and-validate">

  <p:input port="source" primary="true"/>
  <p:output port="result">
    <p:pipe step="validated" port="result"/>
  </p:output>

  <p:xinclude name="included">
    <p:input port="source">
      <p:pipe step="xinclude-and-validate" port="source"/>
    </p:input>
  </p:xinclude>

  <p:validate-with-xml-schema name="validated">
    <p:input port="source">
      <p:pipe step="included" port="result"/>
    </p:input>
    <p:input port="schema">      
      <p:document href="http://example.org/schemas/util/address.xsd"/>
      <p:document href="http://example.org/schemas/po.xsd"/>
    </p:input>
  </p:validate-with-xml-schema>

</p:declare-step>

- --------
<p:pipeline xmlns:p="http://www.w3.org/ns/xproc"
            xmlns:px="http://example.org/ns/pipelines"
            type="px:xinclude-and-validate">

  <p:xinclude/>

  <p:validate-with-xml-schema>
   <p:input port="schema">      
    <p:document href="http://example.org/schemas/util/address.xsd"/>
    <p:document href="http://example.org/schemas/po.xsd"/>
   </p:input>
  </p:validate-with-xml-schema>

</p:pipeline>

- ---------

This would require the picture to be modified. . .

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)

iD8DBQFHg6w6kjnJixAXWBoRAuA4AJ4waMDLogwAm3E1/1d/zhb2fCUyCQCfZZds
025h0jGvIptsJFaNLg2SIu0=
=/Tdu
-----END PGP SIGNATURE-----
Received on Tuesday, 8 January 2008 17:00:50 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 17:00:51 GMT