|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Converting RSS to HTML
Ronan Brady wrote:
>
> I'm trying to convert from RSS 1.0 to HTML, but I'm having serious trouble
> selecting elements from the RSS file.
> Specifically, the element <rdf:RDF> is causing me problems because it's
> qualified by a namespace.
The other elements are also qualified, even if you are using a default
namespace.
What you need is to add a declaration for the RSS namespace in you
stylesheet:
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rss="http://purl.org/rss/1.0/"
>
and the qualify all your elements
(for instance: select="/rdf:RDF/rss:channel").
Hope this helps.
Eric
--
See you in Austin (Knowledge Technologies 2001)
http://www.gca.org/attend/2001_conferences/kt_2001/mon.htm
------------------------------------------------------------------------
Eric van der Vlist Dyomedea http://dyomedea.com
http://xmlfr.org http://4xt.org http://ducotede.com
------------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








