W3C home > Mailing lists > Public > public-xml-processing-model-comments@w3.org > August 2012

Error in 7.1.5 p:delete

From: Tim Mills <tim@cbcl.co.uk>
Date: Wed, 29 Aug 2012 14:56:51 +0100
Message-ID: <503E1FA3.5000105@cbcl.co.uk>
To: public-xml-processing-model-comments@w3.org
The specification states that p:delete "cannot be used to remove 
namespaces. It is a dynamic error (err:XC0062) if the match option 
matches a namespace node. "

Unless I'm mistaken, this error code appears to be redundant becaise an 
XSLT pattern does not permit matching of namespaces (the namespace axis 
isn't available).  See:

http://www.w3.org/TR/xslt#patterns
http://www.w3.org/TR/xslt20/#patterns

The test case:

Test err:XC0062 #001
<p:pipeline version="1.0" xmlns:p="http://www.w3.org/ns/xproc">
       <p:delete match="namespace::test" />
</p:pipeline>

is therefore wrong because namespace::test is not a valid 
XSLTMatchPattern.  Perhaps this should be expecting err:XD0028.
Received on Wednesday, 29 August 2012 13:55:24 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 29 August 2012 13:55:24 GMT