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
Status: CLOSED FIXED
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
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-16 14:02 UTC by Yves Savourel
Modified: 2006-09-18 04:40 UTC (History)
0 users

See Also:


Attachments

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
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.
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
http://lists.w3.org/Archives/Public/public-i18n-its/2006JanMar/0098.html)
- 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
http://lists.w3.org/Archives/Public/public-i18n-its/2006JanMar/0100.html