- From: Innovimax SARL <innovimax@gmail.com>
- Date: Thu, 24 May 2007 16:46:58 +0200
- To: "Henry S. Thompson" <ht@inf.ed.ac.uk>
- Cc: public-xml-processing-model-wg <public-xml-processing-model-wg@w3.org>
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 ? Mohamed On 5/24/07, Henry S. Thompson <ht@inf.ed.ac.uk> wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Further to the action I took a few weeks ago, I propose that we add an > optional 'group-by' option, with value an XPath expression, to the > required p:wrap and p:wrap-sequence steps, semantics as follows: > > For p:wrap, 'adjacent' matches of the 'match' option which have the > same string value for the 'group-by' expression, given the matched > node as context node, are wrapped together in a single 'wrapper' > element. Matches are 'adjacent' if they are siblings, and nothing > intervenes between them except all-white text nodes, comment nodes and > processing instruction nodes (but see below under 'ignore'). > > If control over what is ignored in determining 'adjacency' is felt to > be necessary, an optional 'ignore' option could be added, value an > XPath expression, to specify what nodes can be ignored between > matching siblings for grouping purposes. I have a modest inclination > not to provide this. . . > > For p:wrap-sequence, documents are grouped and wrapped so that each > output document wraps input documents which have the same string value > for the 'group-by' expression, given their document node as context > node. This may result in a sequence output. > > 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) > > iD8DBQFGVXXzkjnJixAXWBoRAqb4AJsHkKmP6FN9i3tJ/xjPLUYI+XEEEgCfdTL1 > +69jvMG1q8WSfxsSdWHl3KY= > =m0LK > -----END PGP SIGNATURE----- > > -- 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 14:47:16 UTC