Re: Example in 4.2 For-each

On 5/3/07, Norman Walsh <ndw@nwalsh.com> wrote:
>
> / ht@inf.ed.ac.uk (Henry S. Thompson) was heard to say:
> | 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?
>
> No, I think you're right, except that the name of the port is #current.
> Which isn't an NCName...grrr. I wonder if just plain "current" would
> be better.


I never trust #current would be used for real, but what about _current

                                        Be seeing you,
>                                           norm
>
> --
> Norman Walsh <ndw@nwalsh.com> | God, root, what is difference?" --Pitr,
> http://nwalsh.com/            | User Friendly; "God is more forgiving."
>                               | -- Dave Aronson
>
>


-- 
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 Thursday, 3 May 2007 14:56:08 UTC