List Info

Thread: Re: RNGschema and xpointer




Re: RNGschema and xpointer
user name
2007-01-17 09:34:40
Hi,

> Quoting Huber  Evelyne <huberestudent.ethz.ch>:
> > in my main file I'd like to include only
<title> and <para>.
> > what is the proper syntax for xpointer? I'm using
> > xpointer="xpointer(/section/*) with xsltproc
--xinclude, but can't get it to
> > work.
> 
> The following works for me with xsltproc --xinclude:
> 
>   <xi:include href="chapter01.dbk"
>     xmlnsi=&qu
ot;http://www.w3.o
rg/2001/XInclude"
>     xpointer="xpointer(/article/*)"/>
> 
> Maybe there is a subtle difference somewhere?

Probably the missing namespace for DocBook? Evelyne uses
DocBook 5.0.
There is a W3C recommendation for XPointer and namespaces
this purpose, see[1].

Perhaps you have to extend the above xpointer attribute, try
this (untested):

  xpointer="xmlns(db=www.docbook.org/ns/docbook)
xpointer(/db:article/*)"

However, I am not sure if xsltproc supports this.


Tom

------
[1] http://www.w3.org/TR
/xptr-xmlns/




------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )