Re: Renaming 'target' and handling "inner" matches

/ Alex Milowski <alex@milowski.org> was heard to say:
| The rest have definable semantics for handling inner matches:
|
|  * p:insert - it is well defined where the insertion happens for each
|    match regardless of whether one is contained in another.  The canonical
|    example here is inserting a paragraph into every 'div' in an XHTML
| document.

It should be made explicit that the matching doesn't proceed inside
the inserted content.

|  * p:rename - Renaming an element doesn't affect its child.

So nested elements are all renamed?

|  * p:unwrap - Removing an element wrapper doesn't affect its children.

So nested elements are also unwrapped?

|  * p:wrap - Added an element wrapper doesn't affect its children.

So nested elements are also wrapped?


                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | Part of thinking is its cruelty, aside
http://nwalsh.com/            | from its contents. It is the process of
                              | detachment from everything else, the
                              | ripping, the wrenching, the sharpness
                              | of cutting.--Elias Canetti

Received on Sunday, 29 April 2007 21:51:51 UTC