Re: p:insert

On 4/22/07, Norman Walsh <ndw@nwalsh.com> wrote:
>
> Is the target option of p:insert a match pattern or a select pattern?
> (Can we please name it 'select' or 'match', as appropriate)
>
> If the pattern matches more than once, is the content inserted more
> than once?



I  was thinking this step had match semantics.  Once you match you do
the insert and continue.

It is possible to have this do select semantics.  For example, insert a
paragraph into every 'div' in the document.

It could be specified either way.


-- 
--Alex Milowski
"The excellence of grammar as a guide is proportional to the paucity of the
inflexions, i.e. to the degree of analysis effected by the language
considered."

Bertrand Russell in a footnote of Principles of Mathematics

Received on Sunday, 29 April 2007 21:16:50 UTC