2008/5/14 George Cristian Bina <george@oxygenxml.com>:
> Hi Dave,
>
> The context path uses local names, not qualified names to specify the path
> as that path is in the section matched by the current rule so the namespace
> of the elements in that section is the same. You have specified qualified
> names and they are not valid names (local names) thus the error you got from
> oNVDL.
Thanks George. That works:
<mode name="doc">
<namespace ns="http://www.w3.org/2005/Atom">
<validate schema="atom.rng" useMode="xhtml">
<context path="/feed/content/div" useMode="xhtml"/>
</validate>
</namespace>
</mode>
Is it an xpath (without namespaces?) The regex used in the schema seems
to imply not.
I used namespaces since the current section has mixed namespaces,
i.e.
a:feed
a:entry
x:div
Adding 'errors' to the input document shows it to be working now
so I'm happy.
regards
-- Dave Pawson XSLT XSL-FO FAQ. http://www.dpawson.co.uk -- DSDL comments To unsubscribe, please send a message with the command "unsubscribe" to dsdl-comment-request@dsdl.org (mailto:dsdl-comment-request@dsdl.org?Subject=unsubscribe)Received on Wed May 14 10:08:25 2008
This archive was generated by hypermail 2.1.8 : Wed May 14 2008 - 08:33:03 UTC