Re: non-matched output port

On 5/1/07, Norman Walsh <ndw@nwalsh.com> wrote:
>
> / Alex Milowski <alex@milowski.org> was heard to say:
> | As Norm pointed out, delete might not target a document.  Replace won't
> | work because of the same reason. There is no reason why you couldn't
> | replace a text node with an element.
>
> As currently worded, the match pattern in p:replace only matches
> elements, not text nodes.



Yes.... that's true.   Now that I think a bit more after some coffee, we
want
that because our replacement is a element (or document).  We'd have to
specify what we'd do.

I suppose we could allow text descendants to be replaced (or any child) but
we couldn't allow things that aren't children.



-- 
--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 Tuesday, 1 May 2007 16:11:41 UTC