[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Search]

xsltproc and http URLs:



Hi Daniel,

Summary: Retrieving http feed through xsltproc bombs, where wget
followed by xsltproc succeeds.

This is using libxslt2 on an ubuntu machine.

Package: xsltproc
State: installed
Automatically installed: no
Version: 1.1.15-1ubuntu1
Priority: optional
Section: text
Maintainer: Debian XML/SGML Group <debian-xml-sgml-pkgs@xxxxxxxxxxx>
Uncompressed Size: 168k
Depends: libc6 (>= 2.3.4-1), libgcrypt11 (>= 1.2.2), libgpg-error0 (>= 1.1),
         libxml2 (>= 2.6.22), libxslt1.1 (>= 1.1.15), zlib1g (>= 1:1.2.1)
Description: XSLT command line processor
 XSLT is an XML language for defining transformations of XML files from XML to
 some other arbitrary format, such as XML, HTML, plain text, etc. using standard
 XSLT stylesheets. 
 
 This package contains a command line tool that facilitates XSLT
 transformations.

20:31:11 labrador ~ $ 
The following bombs:

xsltproc --param base \"'http://rss.cnn.com/rss/cnn_world.rss '\"  --novalid /home/raman/emacs/lisp/emacspeak/xsl/rss.xsl http://rss.cnn.com/rss/cnn_world.rss
http://rss.cnn.com/rss/cnn_world.rss:1: parser error : Document is empty

^
http://rss.cnn.com/rss/cnn_world.rss:1: parser error : Start tag expected, '<' not found

^
unable to parse http://rss.cnn.com/rss/cnn_world.rss
20:27:09 labrador ~ $ 

xsltproc fails to download the xml feed. Pulling the feed with
wget and running xsltproc succeeds:
xsltproc --param base \"'http://rss.cnn.com/rss/cnn_world.rss '\"  --novalid /home/raman/emacs/lisp/emacspeak/xsl/rss.xsl    /tmp/cnn_world.rss 
<?xml version="1.0" encoding="iso8859-15"?>
<html xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"; xmlns:dc="http://purl.org/dc/elements/1.1/"; xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"; xmlns:rss="http://purl.org/rss/1.0/"; xmlns:nsrss="http://my.netscape.com/rdf/simple/0.9/"; xmlns:str="http://exslt.org/strings";>
  <head>
    <title>CNN.com - World</title>
  </head>
  <body>
    <ul>
      <li><a href="http://rss.cnn.com/~r/rss/cnn_world/~3/106167697/index.html";>Thousands homeless from tsunami</a><br/>Read full story for latest details.
<p><a href="http://rss.cnn.com/~a/rss/cnn_world?a=S27P9c";><img src="http://rss.cnn.com/~a/rss/cnn_world?i=S27P9c"; border="0"></img></a></p><img src="http://rss.cnn.com/~r/rss/cnn_world/~4/106167697"; height="1" width="1"/><br/></li>
      <li><a href="http://rss.cnn.com/~r/rss/cnn_world/~3/106068698/index.html";>Five African Union peacekeepers killed in Darfur</a><br/>Read full story for latest details.
<p><a href="http://rss.cnn.com/~a/rss/cnn_world?a=mFRGAu";><img src="http://rss.cnn.com/~a/rss/cnn_world?i=mFRGAu"; border="0"></img></a></p><img src="http://rss.cnn.com/~r/rss/cnn_world/~4/106068698"; height="1" width="1"/><br/></li>
      <li><a href="http://rss.cnn.com/~r/rss/cnn_world/~3/106109127/index.html";>Iran, Britain signal ways to end standoff </a><br/>Read full story for latest details.
<p><a href="http://rss.cnn.com/~a/rss/cnn_world?a=PCXNrt";><img src="http://rss.cnn.com/~a/rss/cnn_world?i=PCXNrt"; border="0"></img></a></p><img src="http://rss.cnn.com/~r/rss/cnn_world/~4/106109127"; height="1" width="1"/><br/></li>
      <li><a href="http://rss.cnn.com/~r/rss/cnn_world/~3/106109128/index.html";>U.S. Supreme Court rejects Gitmo prisoners appeal</a><br/>In a victory for President Bush, the Supreme Court on Monday rejected an appeal by suspected terrorists challenging their imprisonment at the U.S. military prison at Guantanamo Bay, Cuba.
<p><a href="http://rss.cnn.com/~a/rss/cnn_world?a=zvyY9O";><img src="http://rss.cnn.com/~a/rss/cnn_world?i=zvyY9O"; border="0"></img></a></p><img src="http://rss.cnn.com/~r/rss/cnn_world/~4/106109128"; height="1" width="1"/><br/></li>
      <li><a href="http://rss.cnn.com/~r/rss/cnn_world/~3/106040772/index.html";>Campaign grows to make pope a saint</a><br/>Read full story for latest details.
<p><a href="http://rss.cnn.com/~a/rss/cnn_world?a=IsaPtp";><img src="http://rss.cnn.com/~a/rss/cnn_world?i=IsaPtp"; border="0"></img></a></p><img src="http://rss.cnn.com/~r/rss/cnn_world/~4/106040772"; height="1" width="1"/><br/></li>
    </ul>
    <p>CNN.com delivers up-to-the-minute news and information on the latest top stories, weather, entertainment, politics and more.<a href="http://rss.cnn.com/rss/cnn_world.rss ">
            RSS 
          </a><form action="http://127.0.0.1:8888/my_channels.html"; method="POST"><input type="hidden" name="add_url" value="http://rss.cnn.com/rss/cnn_world.rss "/><input type="submit" name="submit" value="Add to AmphetaDesk"/></form></p>
  </body>
</html>
20:29:57 labrador ~ $ 

-- 
Best Regards,
--raman

      
Email:  raman@xxxxxxxxxxx
WWW:    http://emacspeak.sf.net/raman/
AIM:    emacspeak       GTalk: tv.raman.tv@xxxxxxxxxxx
PGP:    http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC:    irc://irc.freenode.net/#emacs

-----------------------------------------------------------------------------
To unsubscribe from the emacspeak list or change your address on the
emacspeak list send mail to "emacspeak-request@xxxxxxxxxxx" with a
subject of "unsubscribe" or "help"



If you have questions about this archive or had problems using it, please send mail to:

priestdo@xxxxxxxxxxx No Soliciting!

Emacspeak List Archive | 2007 | 2006 | 2005 | 2004 | 2003 | 2002 | 2001 | 2000 | 1999 | 1998 | Pre 1998

Emacspeak Files | Emacspeak Blog