[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Converting RSS to HTML

Subject: Re: Converting RSS to HTML
From: Eric van der Vlist <vdv@xxxxxxxxxxxx>
Date: Tue, 20 Feb 2001 17:48:09 +0100
eric van der vlist rss
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.