Reading values from RSS XML Options
SADIK
Posted: Tuesday, June 17, 2008 2:01:28 PM
Rank: Newbie

Joined: 6/6/2008
Posts: 23
Location: INDIA
I have a xml and in that i have a node <title> and i managed to get the value using the code
<xsl:value-of select="title"/>
i have a node <dc:creator>. When i tried to read this node using the code
<xsl:value-of select="dc:creator"/>it is showing error.How can i read the value from this node?
warren
Posted: Tuesday, June 17, 2008 5:16:00 PM

Rank: Addict

Joined: 7/19/2006
Posts: 746
Location: Leigh-on-Sea, Essex, UK
Hi Sadik,
You will need to include this in your XSLT file at the top.

Code:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:Stylesheet [ <!ENTITY nbsp "&#x00A0;"> ]>
<xsl:stylesheet
    version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:msxml="urn:schemas-microsoft-com:xslt"
    xmlns:umbraco.library="urn:umbraco.library"
        xmlns:DC="http://purl.org/dc/elements/1.1/"
    exclude-result-prefixes="msxml umbraco.library">


Code:

<xsl:value-of select="DC:creator"/>


//Warren



Warren Buckley an Umbraco MVP 08-09 & level 1 certified developer
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.