|
From: Luis A. R. A. <soa...@ho...> - 2007-01-19 19:48:54
|
Hello, good day My name is Luis Alberto Ramírez, I'm from Mexico and I'm
trying to use
the xsort util from the xmltk package, but I found an error, I explain here
the details :
I try to sort a simple document like this
<?xml version="1.0"?>
<inicio>
<sortD a="2" >
<nombre>aa</nombre>
<area>4</area>
</sortD>
<sortD>
<nombre>ff</nombre>
<area>2</area>
</sortD>
<sortD>
<nombre>bb</nombre>
<area>6</area>
</sortD>
<sortD>
<nombre>ww</nombre>
<area>4</area>
</sortD>
<sortD>
<nombre>cc</nombre>
<area>24</area>
</sortD>
</inicio>
with the next command : xsort -c "/inicio" -e "*" -k "area/text()"
midocument.xml
and I get the output : <inicio> , and iterates indefinitely
Like I can realize, this output just iterates when my document contains
attributes,
because I've typed the same command with my document without
attributes and
the output was:
<inicio>
<sortD>
<nombre>cc</nombre>
<area>24</area>
</sortD>
<sortD>
<nombre>ff</nombre>
<area>2</area>
</sortD>
<sortD>
<nombre>ww</nombre>
<area>4</area>
</sortD>
<sortD>
<nombre>aa</nombre>
<area>4</area>
</sortD>
<sortD>
<nombre>bb</nombre>
<area>6</area>
</sortD>
</inicio>
I've read the xsort documentation and it has not commentaries about the
attributes,
So, I'll like to know if is there a way or a command which I can use to
sort the
document, I use fedora Core 6,with the xmltk 2.0 , gcc 4.1.1 and I
downloaded the
document from
http://www.cs.washington.edu/homes/suciu/XMLTK/xmltk-v2.0.zip.
I'll thank you for your help, and thanks for your time.
_________________________________________________________________
Personnalisez votre Messenger avec Live.com
http://www.windowslive.fr/livecom/
|