Viewport and nested selected nodes

Hi,

In the example of <p:viewport> in the spec:

<p:viewport name="encdivs">
   <p:declare-input port="div" step="step" source="port"
                    select="//h:div[@class='enc']"/>
   <p:declare-output port="html" step="encrypt" source="result"/>
   <p:step name="encrypt" type="p:encrypt-document">
     <p:input name="document" step="encdivs" source="div"/>
   </:step>
</p:viewport>

what happens when one selected <div> is a descendant of another selected 
<div>?

I think that viewport should probably filter the selected nodes to only 
those that do not have another selected node as a descendant.

Cheers,

Jeni
-- 
Jeni Tennison
http://www.jenitennison.com

Received on Saturday, 21 October 2006 20:06:23 UTC