Re: [xml] libxml-1.8.5 is released

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Mon Jan 24 2000 - 04:34:01 EST


  Hi,

On Mon, Jan 24, 2000 at 11:15:14AM +1100, he@physics.usyd.edu.au wrote:
>
> hi,
>
> Two problems:
>
> You have the following XML code:
> <A B="linux is cool">
> Gnome is cool too.
> </A>
>
> 1. Which sections of the above code do you treat as text nodes? It
> seems that libxml treats both "linux is cool" and "Gnome is cool too."
> as text nodes. Hence, according to XMLPath, "linux is cool" should be a
> child of A since it is a text node? Or should "linux is cool" be
> regarded part of the attribute, B?

~/XML -> cat tst2.xml
<?xml version="1.0"?>
<A B="linux is cool"> Gnome is cool too. </A>
~/XML -> ./tester --debug tst2.xml
DOCUMENT
version=1.0
standalone=true
  ELEMENT A
    ATTRIBUTE B
      TEXT
      content=linux is cool
    TEXT
    content= ...
~/XML ->

 it's a child of the atribute, attributes have a list of child
containing text or entity references.

> 2. Should /child::A/attribute::B/parent::A give back the node A? I
> tried testXPath and it returns an empty Node Set.

 I still have troubles with the namespace and attributes axis in the
XPath implementation, it's part of the TODO

Daniel

-- 
Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes  | Today's Bookmarks :
Tel : +33 476 615 257  | 655, avenue de l'Europe | Linux XML libxml WWW
Fax : +33 476 615 207  | 38330 Montbonnot FRANCE | Gnome rpm2html rpmfind
 http://www.w3.org/People/all#veillard%40w3.org  | RPM badminton Kaffe
----
Message from the list xml@xmlsoft.org
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@xmlsoft.org


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Aug 02 2000 - 12:29:58 EDT