[Versa] Updated test cases and spec

Jeremy Kloth jeremy.kloth at fourthought.com
Wed Oct 5 13:03:47 MDT 2005


On Wednesday 05 October 2005 12:38 pm, Michael Olson wrote:
> What I would like to do it
>
> <xi:include href="String.rdf" xpointer="/rdf:RDF/*"/>
>
> which, for some reason I never understood, is invalid xptr.  Well, I
> understand why it is invalid xptr, but why xinclude would then depend
> on something that limits it to a single element inclusion I never under
> stood.

OK, to translate that to a valid XPointer:

  xmlns(rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns#)xpointer(/rdf:RDF/*)

Although I would probably rewrite it as /*/* to avoid the xmlns() declaration.  
One problem is that our XPointer support in Domlette doesn't support the '*' 
match yet.

And, for the record, XInclude/XPointer does allow for multiple node inclusion: 
http://www.w3.org/TR/xinclude/#multiple-nodes

-- 
Jeremy Kloth
Fourthought, Inc.
http://fourthought.com/
http://4suite.org/


More information about the Versa mailing list