Skip Menu |
 

This queue is for tickets about the XML-XSH CPAN distribution.

Report information
The Basics
Id: 105230
Status: rejected
Worked: 3 min
Priority: 0/
Queue: XML-XSH

People
Owner: CHOROBA [...] cpan.org
Requestors: nonsolosoft [...] diff.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.8.2
Fixed in: (no value)



Subject: xsh fails to find nodes
Download (untitled) / with headers
text/plain 3.8k
bash-4.3$ xsh -X -I VerySimple.xml defined(@array) is deprecated at ~/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/XML/XSH/Completion.pm line 111. (Maybe you should just omit the defined()?) ------------------------------------------------------------- xsh - XML Editing Shell version 1.8.2/0.12 (Revision: 1.32) ------------------------------------------------------------- Copyright (c) 2002 Petr Pajas. This is free software, you may use it and distribute it under either the GNU GPL Version 2, or under the Perl Artistic License. parsing VerySimple.xml done. Using terminal type: Term::ReadLine::Gnu Hint: Type `help' or `help | less' to get more help. xsh _:/> ls /cat-import Found 0 node(s). xsh _:/> ls / <?xml version="1.0" encoding="UTF-8"?> <cat-import xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://san.mibac.it/cat-import" xmlns:eac-cpf="http://san.mibac.it/eac-san/" xmlns:ead-complarc="http://san.mibac.it/ead-san/" xmlns:ead-str="http://san.mibac.it/ricerca-san/" xmlns:scons="http://san.mibac.it/scons-san/" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://san.mibac.it/cat-import http://www.san.beniculturali.it/tracciato/cat-import.xsd"> <catheader> <systemId>LBC-Archivi</systemId> <contact> <name>Giancarlo Scola</name> <mail>giancarlo@codexcoop.it</mail> <phone>+39 0382 35668</phone> <fax/> </contact> <filedesc> <title>Export da LBC-Archivi (PLAIN) a SAN</title> <abstract>Test</abstract> <date>2014-01-23T18:48:45+01:00</date> </filedesc> </catheader> <catListRecords> <catRecord> <catRecordHeader type="complesso archivistico"> <id>MIBA0004FE</id> <lastUpdate>2014-01-23T18:48:45+01:00</lastUpdate> </catRecordHeader> <catRecordBody> <ead xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://san.mibac.it/ead-san/"> <archdesc level="otherlevel" otherlevel="fondo"> <did> <unitid type="LBC-Archivi" identifier="http://www.lombardiabeniculturali.it/archivi/complessi-archivistici/MIBA0004FE/">MIBA0004FE</unitid> <unittitle type="principale">Comune di Ardesio</unittitle> <unitdate normal="15070101/18241231" datechar="principale">1507 - 1824</unitdate> <physdesc> <extent>unità 41</extent> </physdesc> <origination>MIDB0001E4</origination> <repository id="MIAA000169" label="LBC-Archivi">Comune di Ardesio</repository> </did> <processinfo>scheda pubblicata</processinfo> <relatedmaterial> <archref>MIBA0004FE</archref> </relatedmaterial> </archdesc> </ead> </catRecordBody> </catRecord> </catListRecords> </cat-import> Found 1 node(s). xsh _:/> Good bye! bash-4.3$ cat VerySimple.xml | xpath '/cat-import/catListRecords' Found 1 nodes: -- NODE -- <catListRecords> <catRecord> <catRecordHeader type="complesso archivistico"> <id>MIBA0004FE</id> <lastUpdate>2014-01-23T18:48:45+01:00</lastUpdate> </catRecordHeader> <catRecordBody> <ead xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://san.mibac.it/ead-san/"> <archdesc level="otherlevel" otherlevel="fondo"> <did> <unitid type="LBC-Archivi" identifier="http://www.lombardiabeniculturali.it/archivi/complessi-archivistici/MIBA0004FE/">MIBA0004FE</unitid> <unittitle type="principale">Comune di Ardesio</unittitle> <unitdate normal="15070101/18241231" datechar="principale">1507 - 1824</unitdate> <physdesc> <extent>unit� 41</extent> </physdesc> <origination>MIDB0001E4</origination> <repository id="MIAA000169" label="LBC-Archivi">Comune di Ardesio</repository> </did> <processinfo>scheda pubblicata</processinfo> <relatedmaterial> <archref>MIBA0004FE</archref> </relatedmaterial> </archdesc> </ead> </catRecordBody> </catRecord> </catListRecords>
Download (untitled) / with headers
text/plain 6.4k
XML::XSH is deprecated. Use XML::XSH2. The XPath wouldn't work in XML::XSH2, either: there's no node named cat-import in the empty namespace. register-namespave san 'http://san.mibac.it/cat-import' ; ls /san:cat-import ; Ch. On Sun Jun 14 22:04:09 2015, nonsolosoft@diff.org wrote: Show quoted text
> bash-4.3$ xsh -X -I VerySimple.xml > defined(@array) is deprecated at ~/perl5/perlbrew/perls/perl- > 5.18.2/lib/site_perl/5.18.2/XML/XSH/Completion.pm line 111. > (Maybe you should just omit the defined()?) > ------------------------------------------------------------- > xsh - XML Editing Shell version 1.8.2/0.12 (Revision: 1.32) > ------------------------------------------------------------- > > Copyright (c) 2002 Petr Pajas. > This is free software, you may use it and distribute it under > either the GNU GPL Version 2, or under the Perl Artistic License. > parsing VerySimple.xml > done. > Using terminal type: Term::ReadLine::Gnu > Hint: Type `help' or `help | less' to get more help. > xsh _:/> ls /cat-import > > Found 0 node(s). > xsh _:/> ls / > <?xml version="1.0" encoding="UTF-8"?> > <cat-import xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns="http://san.mibac.it/cat-import" xmlns:eac- > cpf="http://san.mibac.it/eac-san/" xmlns:ead- > complarc="http://san.mibac.it/ead-san/" xmlns:ead- > str="http://san.mibac.it/ricerca-san/" > xmlns:scons="http://san.mibac.it/scons-san/" > xmlns:xlink="http://www.w3.org/1999/xlink" > xsi:schemaLocation="http://san.mibac.it/cat-import > http://www.san.beniculturali.it/tracciato/cat-import.xsd"> > <catheader> > <systemId>LBC-Archivi</systemId> > <contact> > <name>Giancarlo Scola</name> > <mail>giancarlo@codexcoop.it</mail> > <phone>+39 0382 35668</phone> > <fax/> > </contact> > <filedesc> > <title>Export da LBC-Archivi (PLAIN) a > SAN</title> > <abstract>Test</abstract> > <date>2014-01-23T18:48:45+01:00</date> > </filedesc> > </catheader> > <catListRecords> > <catRecord> > <catRecordHeader type="complesso > archivistico"> > <id>MIBA0004FE</id> > <lastUpdate>2014-01- > 23T18:48:45+01:00</lastUpdate> > </catRecordHeader> > <catRecordBody> > <ead > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns="http://san.mibac.it/ead-san/"> > <archdesc level="otherlevel" > otherlevel="fondo"> > <did> > <unitid > type="LBC-Archivi" > identifier="http://www.lombardiabeniculturali.it/archivi/complessi- > archivistici/MIBA0004FE/">MIBA0004FE</unitid> > <unittitle > type="principale">Comune di Ardesio</unittitle> > <unitdate > normal="15070101/18241231" datechar="principale">1507 - > 1824</unitdate> > <physdesc> > <extent>unità > 41</extent> > </physdesc> > <origination>MIDB0001E4</origination> > <repository > id="MIAA000169" label="LBC-Archivi">Comune di Ardesio</repository> > </did> > <processinfo>scheda > pubblicata</processinfo> > <relatedmaterial> > <archref>MIBA0004FE</archref> > </relatedmaterial> > </archdesc> > </ead> > </catRecordBody> > </catRecord> > </catListRecords> > </cat-import> > > > Found 1 node(s). > xsh _:/> Good bye! > > bash-4.3$ cat VerySimple.xml | xpath '/cat-import/catListRecords' > Found 1 nodes: > -- NODE -- > <catListRecords> > <catRecord> > <catRecordHeader type="complesso > archivistico"> > <id>MIBA0004FE</id> > <lastUpdate>2014-01- > 23T18:48:45+01:00</lastUpdate> > </catRecordHeader> > <catRecordBody> > <ead > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns="http://san.mibac.it/ead-san/"> > <archdesc level="otherlevel" > otherlevel="fondo"> > <did> > <unitid > type="LBC-Archivi" > identifier="http://www.lombardiabeniculturali.it/archivi/complessi- > archivistici/MIBA0004FE/">MIBA0004FE</unitid> > <unittitle > type="principale">Comune di Ardesio</unittitle> > <unitdate > normal="15070101/18241231" datechar="principale">1507 - > 1824</unitdate> > <physdesc> > <extent>unit� > 41</extent> > </physdesc> > <origination>MIDB0001E4</origination> > <repository > id="MIAA000169" label="LBC-Archivi">Comune di Ardesio</repository> > </did> > <processinfo>scheda > pubblicata</processinfo> > <relatedmaterial> > <archref>MIBA0004FE</archref> > </relatedmaterial> > </archdesc> > </ead> > </catRecordBody> > </catRecord> > </catListRecords>


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.