- From: Norman Walsh <ndw@nwalsh.com>
- Date: Thu, 24 May 2007 11:03:21 -0400
- To: public-xml-processing-model-wg@w3.org
- Message-ID: <87abvufeme.fsf@nwalsh.com>
/ 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
Received on Thursday, 24 May 2007 15:03:29 UTC