Re: Propose to add 'group-by' option to p:wrap and p:wrap-sequence

XSLT 2 is optional.....and If the file is 1Gb long

On 5/24/07, Norman Walsh <ndw@nwalsh.com> wrote:
> / Innovimax SARL <innovimax@gmail.com> was heard to say:
> | Are you saying that
> | p:wrap
> | option : wrapper (QName)
> | option : match (XPath)
> | option : group-by (XPath with matched node as context evaluated as a string key)
> | option : ignore (Pattern matching the ignorable nodes)
> |
> | p:wrap-sequence
> | option : wrapper (QName)
> | option : match (XPath)
> | option : group-by (XPath with matched node as context evaluated as a string key)
> |
> | How will it works for flatten hierarchie ?
> | <div>
> |  <h1>...</h1>
> |  <h2>...</h2>
> |  <p>..<p>
> |  <h2>...</h2>
> |  <h3>...</h3>
> |  <p>..<p>
> |  <p>..<p>
> |  <h2>...</h2>
> |  <p>..<p>
> |  <h1>...</h1>
> |  <h2>...</h2>
> |  <p>..<p>
> |  <h2>...</h2>
> |  <h3>...</h3>
> |  <p>..<p>
> |  <p>..<p>
> |  <h2>...</h2>
> |  <p>..<p>
> | </div>
> |
> | I want this
> |
> | <div>
> |  <wrapper>
> |  <h1>...</h1>
> |  <h2>...</h2>
> |  <p>..<p>
> |  <h2>...</h2>
> |  <h3>...</h3>
> |  <p>..<p>
> |  <p>..<p>
> |  <h2>...</h2>
> |  <p>..<p>
> |  </wrapper>
> |  <wrapper>
> |  <h1>...</h1>
> |  <h2>...</h2>
> |  <p>..<p>
> |  <h2>...</h2>
> |  <h3>...</h3>
> |  <p>..<p>
> |  <p>..<p>
> |  <h2>...</h2>
> |  <p>..<p>
> |  </wrapper>
> | </div>
> |
> | How will I do that ?
>
> With XSLT 2?
>
> I hope we don't need anything as rich and complex as for-each-group
> in XProc.
>
>                                         Be seeing you,
>                                           norm
>
> --
> Norman Walsh <ndw@nwalsh.com> | Are you not the future of all the
> http://nwalsh.com/            | memories stored within you? The future
>                               | of the past?--Paul Valéry
>
>


-- 
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, 24 May 2007 15:08:00 UTC