W3C home > Mailing lists > Public > public-xml-processing-model-wg@w3.org > October 2006

Viewport and nested selected nodes

From: Jeni Tennison <jeni@jenitennison.com>
Date: Sat, 21 Oct 2006 21:06:13 +0100
Message-ID: <453A7DB5.3010105@jenitennison.com>
To: public-xml-processing-model-wg@w3.org

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:21:49 GMT