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

Example in 4.2 For-each

From: Henry S. Thompson <ht@inf.ed.ac.uk>
Date: Thu, 03 May 2007 13:11:38 +0100
To: public-xml-processing-model-wg@w3.org
Message-ID: <f5by7k6hzt1.fsf@hildegard.inf.ed.ac.uk>

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

I don't think this is quite right -- I think the lines marked | below
need to be added:

 <p:for-each name="chapters" select="//chapter">
  <p:output port="html-results">
    <p:pipe step="make-html" port="result"/>
  </p:output>
  <p:output port="fo-results">
    <p:pipe step="make-fo" port="result"/>
  </p:output>

  <p:xslt name="make-html">
    <p:input port="stylesheet">
      <p:document href="http://example.com/xsl/html.xsl"/>
    </p:input>
  </p:xslt>

  <p:xslt name="make-fo">
|   <p:input port="source">
|     <p:pipe step="chapters" port="current"/>
|   </p:input>
    <p:input port="stylesheet">
      <p:document href="http://example.com/xsl/fo.xsl"/>
    </p:input>
  </p:xslt>
 </p:for-each>

Or have I misunderstood the defaulting rules?

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)

iD8DBQFGOdF6kjnJixAXWBoRAtl5AJoCwbe6xaXKxZr26L49AJMezdRjuwCeK/iV
DFkjWKb2G1jl9fSh8/8+L0Y=
=RCRN
-----END PGP SIGNATURE-----
Received on Thursday, 3 May 2007 12:11:40 GMT

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