OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

relax-ng message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: Datatype interface reference implementation



Here is the reference implementation of RELAX NG datatype interface for
Java.

It uses the namespace URI of "http://relaxng.org/ns/xpathlib/1.0" (is
this OK?), and validates XPath.

It is based on Ingo Macherius's XPath grammar for JavaCC. And the
current release doesn't contain licensing terms. It is intended to be
released under the same license as the interface itself.



> For example, the following example validates "path" attribute as
> an XPath.
> 
> <element name="test">
>   <attribute name="path"
>         datatypeLibrary="http://relaxng.org/ns/xpathlib/1.0">
>     <data type="XPath"/>
>   </attribute>
> </element>
> 
> It matches things like:
> 
> <test path="//abc/def/ghi[@jkl='mno']"/>
> <test path="child::chapter/descendant::para"/>
> 
> But not
> 
> <test path="foo:chapter//title"/>
>      --- undeclared namespace prefix "foo".
> <test path=":::"/>
> 	 --- bad XPath


regards,
--
Kohsuke KAWAGUCHI                          +1 650 786 0721
Sun Microsystems                   kohsuke.kawaguchi@sun.com

xpathlib.20010619.zip



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC