W3C home > Mailing lists > Public > xproc-dev@w3.org > January 2012

Re: calling for xproc pain points, requested features, etc

From: Norman Walsh <ndw@nwalsh.com>
Date: Tue, 10 Jan 2012 05:43:57 -0800
To: XProc Dev <xproc-dev@w3.org>
Message-ID: <m2k44zy8o2.fsf@nwalsh.com>
Geert Josten <geert.josten@dayon.nl> writes:
> (sorry, meant to sent this to the list)
> -----Oorspronkelijk bericht-----
> Van: Geert Josten [mailto:geert.josten@dayon.nl]
> Verzonden: dinsdag 10 januari 2012 8:54
> Aan: 'Norman Walsh'
> Onderwerp: RE: calling for xproc pain points, requested features, etc
> +1 for adding a select on p:for-each. It could work similar to xsl:variable
> and xsl:attribute. If there is a select, p:iteration-source is ignored (or
> better: disallowed). In other words: keep the syntax compact where possible
> and sensible..

That's an interesting idea. I'm not opposing it, but I think we also need to
keep an eye on how many "ad hoc" syntactic shortcuts we add to the language.
There's tension between keeping everything completely regular and consistent
vs. adopting every shortcut imaginable.

I have some concern that a story which says this is valid:

  <p:for-each select="//chapter">...</p:for-each>

but this is not

  <p:for-each select="//chapter">
      <p:pipe step="somestep" port="result"/>

and that it has to be rewritten this way:

    <p:iteration-source select="//chapter">
      <p:pipe step="somestep" port="result"/>

is confusing. OTOH, this clearly has to be forbidden:

  <p:for-each select="//appendix">
    <p:iteration-source select="//chapter">
      <p:pipe step="somestep" port="result"/>

Just a few thoughts...

                                        Be seeing you,

Norman Walsh
Lead Engineer
MarkLogic Corporation
Phone: +1 413 624 6676

Received on Tuesday, 10 January 2012 13:44:35 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:03:09 UTC