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?
|
 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 " "> ]> <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
|