[xml] XPointer problem
- From: Aleksey Sanin <aleksey aleksey com>
- To: xml gnome org
- Subject: [xml] XPointer problem
- Date: Wed, 07 Aug 2002 15:38:15 -0700
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"])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]