[Bug 2719] Namespace requirement and selector values

http://www.w3.org/Bugs/Public/show_bug.cgi?id=2719





------- Additional Comments From fsasaki@w3.org  2006-01-27 06:34 -------
I think a solution can be in the way it is done by schematron, see
http://www.schematron.com/elements.html . Schematron has the same problem as
ITS: XPath expressions are used within a schematron document, but how should one
deal with default namespaces? The schematron solution is: have a separate <ns>
element which is used for namespace definitions for the XPath expressions, like
in the @context and @test attribute below:

<schema xmlns="http://purl.oclc.org/dsdl/schematron">
 <title>A Schematron Mini-Schema for Schematron</title>
 <ns prefix="sch" uri="http://purl.oclc.org/dsdl/schematron">
 <pattern>
   <rule context="sch:schema">
     <assert test="sch:pattern"
...
No prefix means no namespace. We have still to define how to use the <ns>
element if we have in situ ITS markup. But that would be a minor issue, I think.

Received on Friday, 27 January 2006 06:34:24 UTC