XPath context for relative selectors

Hello,
I'm Nathan. Serge Gladkoff introduced me last week. I'm working on the ITS
WICS project. I have a couple of questions about the ITS spec regarding
relative selectors, section 5.3.2.2.

My first question is about namespaces.  The spec says that the XPath
context is the same as for the absolute selector, with a few changes. I am
unsure as to whether that means that the context for a relative selector is
the same as that of the absolute selector that led to it, or that the spec
language is the same for it. This leads me to wonder whether the set of
namespaces available to the XPath is the same one that was used in the
absolute selector, or is the set of namespaces in scope for the context
node (the node selected via the absolute selector, a rule's selectorattribute).

My second question is about variables. Are variables which are bound for
absolute selectors also bound for their relative selectors? In other words,
does the markup below make sense?

<myDoc>
    <head>
        <its:rules xml:id='container2'
            xmlns:its="http://www.w3.org/2005/11/its"
            version="2.0">
            <its:param name="noteAtt">note</its:param>
              <its:locNoteRule
                locNoteType="description"
                selector="id('par1')"
                locNotePointer="@*[name()=$noteAtt]"/>
        </its:rules>
    </head>
    <par xml:id="par1" note="some localization note">
        Some text
    </par>
</myDoc>

Nathan

Received on Thursday, 11 July 2013 09:47:31 UTC