- From: Innovimax SARL <innovimax@gmail.com>
- Date: Thu, 21 Aug 2008 14:20:22 +0200
- To: "XProc WG" <public-xml-processing-model-wg@w3.org>
I have still trouble to fully understand the code fragment provided as sample in the spec Especially this one [[ <p:pipeline type="ex:delete-in-div" xmlns:p="http://www.w3.org/ns/xproc" xmlns:ex="http://example.org/ns/ex" xmlns:h="http://www.w3.org/1999/xhtml"> <p:option name="divchild" required="true"/> <p:delete> <p:with-option name="match" select="concat('h:div/',$divchild)"> <p:namespaces xmlns:h="http://www.w3.org/1999/xhtml" xmlns:html="http://www.w3.org/1999/xhtml"/> </p:with-option> </p:delete> </p:pipeline> ]] In my understanding, the binding of the prefix "h" has been done on p:pipeline element, so we don't need to recall the binding on p:namespaces element, do we ? Furthermore again by the same rule ("Otherwise, the in-scope namespaces from the element providing the value are used."), we can completely get rid of p:namespaces in this case <p:delete> <p:with-option name="match" select="concat('h:div/',$divchild)" xmlns:html="http://www.w3.org/1999/xhtml"/> </p:delete> Am I right ? Hence we got also [[ <?xml version='1.0'?> <p:pipeline type="ex:delete-in-div" xmlns:p="http://www.w3.org/ns/xproc" xmlns:ex="http://example.org/ns/ex" xmlns:h="http://www.w3.org/1999/xhtml"> <p:option name="divchild" required="true"/> <p:delete> <p:with-option name="match" select="concat('h:div/',$divchild)"> <p:namespaces binding="divchild"/><!-- this one makes full sense for me --> </p:with-option> </p:delete> </p:pipeline> ]] Mohamed -- Innovimax SARL Consulting, Training & XML Development 9, impasse des Orteaux 75020 Paris Tel : +33 9 52 475787 Fax : +33 1 4356 1746 http://www.innovimax.fr RCS Paris 488.018.631 SARL au capital de 10.000 €
Received on Thursday, 21 August 2008 12:20:57 UTC