Re: [xml] XPointer problem



No reply in a week so I am reposting the message.  Daniel, can your
confirm that my understanding is correct and there is a buf in LibXML
imlementation?

Aleksey.

Aleksey Sanin wrote:

Hi, Daniel!

I am not sure but it looks like I found a small problem with XPointer
implementation in LibXML: it looks like LibXML does not support
multiple "xpointer()" parts as it is described in [1].
It'll be great if you can take a look at this because I've looked at the
xpointer.c (functions: xmlXPtrEval and xmlXPtrEvalXPointer) and it
does not seem like there exists a quick and simple fix.

Thank you in advance,

Aleksey.



[1] http://www.w3.org/TR/2001/CR-xptr-20010911/#schemes
-----

However, in the absence of the DTD, it is not typically possible to determine if an attribute is of type ID. An XPointer like the following, with two parts, will have its first part fail if no DTD is available, but will have its second part succeed if the desired attribute's name is id; note that the intent of the second
XPointer part is just an approximation of the first.

xpointer(id("chap1"))xpointer(//*[ id="chap1"])


_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xml gnome org
http://mail.gnome.org/mailman/listinfo/xml






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]