This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 2719 - Namespace requirement and selector values
Summary: Namespace requirement and selector values
Alias: None
Product: ITS
Classification: Unclassified
Component: ITS tagset (show other bugs)
Version: WorkingDraft
Hardware: PC Windows XP
: P2 normal
Target Milestone: PublicationFebruar20
Assignee: Felix Sasaki
QA Contact: ITS mailing-list
Depends on:
Reported: 2006-01-16 14:02 UTC by Yves Savourel
Modified: 2006-09-18 04:40 UTC (History)
0 users

See Also:


Description Yves Savourel 2006-01-16 14:02:16 UTC
The specification does not include information about how the selectors values 
should be set with regard to namespaces. Applying XPath expressions with or 
without namespace will have different results depending on how the document is 
written. What should be the standard process to resolve this?
Comment 1 Felix Sasaki 2006-01-27 06:34:16 UTC
I think a solution can be in the way it is done by schematron, see . 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="">
 <title>A Schematron Mini-Schema for Schematron</title>
 <ns prefix="sch" uri="">
   <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.
Comment 2 Felix Sasaki 2006-02-09 14:14:59 UTC
The working group decided
- to use no selector attributes in situ, which resolves this issue for in situ
ITS markup (See
- to use zero or more <ns prefix=".." uri=".."> elements inside the
<documentRules> to specify a namespace binding for XPath expressions, which
resolves the issue for dislocated ITS. See