Comparing p:delete and p:viewport

Regarding both of them

I find some inconsistencies

I started from the fact that

<p:delete>
 <p:option name="match" value="##pattern"/>
</p:delete>

should be equivalent to

<p:viewport match="##pattern">
 <p:output port="result"/>
</p:viewport>

And I found this :

* Viewport MUST have a restriction on the XPath match to match only
elements, PI and comments (no attribute, no namespace) ; The same is
true for p:for-each
--> It will confirm a substle difference of p:delete on attributes and namespace
* It is currently said in the spec that we need an output element, why
? Why cannot it be defaulted ?

Mohamed

-- 
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 Tuesday, 1 May 2007 13:25:14 UTC