← Prev in month ← Prev in thread

Datatype interface reference implementation

From
Kohsuke KAWAGUCHI <>
Date
2001-06-19T19:26:41+00:00
ID
Thread
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                   
← Prev in month ← Prev in thread