Everything works great in my XSLT to parse through the RDF document except for getting the channel/title.
The xpath I've used is "//channel/title", "//channel/title/text()", "rdf:RDF/channel/title",
"rdf:RDF/channel/title/tex
t()", "rss:channel/rss:title" etc...
I cant seem to get the document title to display. When I test my xpath in xmlspy they test correct.
Can someone please help.
RDF Document: Snip
**************************
**********
<?xml version="1.0" encoding="iso-8859-1" ?>
<rdf:RDF xmlns:rdf="
http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="
http://purl.org/rss/1.0/" xmlns:dc="
http://purl.org/dc/elements/1.1/">
<channel rdf:about="
http://www.coattails.net/wow/wow_alerts.php">
<title>World of Warcraft Community Alerts</title>
<link>
http://forums.worldofwarcraft.com/board.aspx?fn=wow-realm-status</link
>
<description>World of Warcraft Alerts newsfeed by Belatucadros for Coattails.net - Original alerts (c) Blizzard.com.</description
>
<dc:language>en</dc:langua
ge>
<dc:publisher>Feed (c) Coattails (
www.coattails.net)</dc:pu
blisher>
<dc:creator>Feed created and maintained by Belatucadros (did all the work)(belatucadros@coattai
ls.net) and Taggart (not so much)(omg@wtfpwn.net).</dc
:creator>
<items>
<rdf:Seq>
<rdf:li rdf:resource="
http://forums.worldofwarcraft.com/board.aspx?fn=wow-realm-status#1" />
<rdf:li rdf:resource="
http://forums.worldofwarcraft.com/board.aspx?fn=wow-realm-status#2" />
<rdf:li rdf:resource="
http://forums.worldofwarcraft.com/board.aspx?fn=wow-realm-status#3" />
<rdf:li rdf:resource="
http://forums.worldofwarcraft.com/board.aspx?fn=wow-realm-status#4" />
<rdf:li rdf:resource="
http://forums.worldofwarcraft.com/board.aspx?fn=wow-realm-status#5" />
</rdf:Seq>
</items>
</channel>
XSLT
**************************
****
<?xml version='1.0'?>
<xsl:stylesheet version="1.0" exclude-result-prefixes="r
df rss l dc admin content xsl"
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/"
xmlns:dc="
http://purl.org/dc/elements/1.1/"
xmlns:admin="
http://webns.net/mvcb/"
xmlns:l="
http://purl.org/rss/1.0/modules/link/"
xmlns:content="
http://purl.org/rss/1.0/modules/content/"
>
<xsl:output omit-xml-declaration="yes"
/>
<xsl:template match="/rdf:RDF">
<br/>
<div style="width:50%;">
<xsl:attribute name="style">font-size: 10pt;</xsl:attribute>
<xsl:attribute name="id">title</xsl:attri
bute>
<a>
<xsl:attribute name="href">#</xsl:attribu
te>
<xsl:attribute name="style">underline: none;font-weight: bold;</xsl:attribute>
<xsl:attribute name="onClick">display('co
ntent:<xsl
:value-of select="rdf:RDF/channel/ti
tle" />');</xsl:attribute>
<xsl:value-of select="rdf:RDF/channel/ti
tle" />
</a>
</div>
<div style="width:50%;">
<xsl:attribute name="id">content:<xsl:val
ue-of select="rdf:RDF/channel/ti
tle" /></xsl:attribute>
<xsl:for-each select="rss:item">
<div style="clear:left;">
<a class="headlines">
<xsl:attribute name="href">
<xsl:value-of select="@rdf:about"/>
</xsl:attribute>
<xsl:value-of select="rss:title"/>
</a>
<br/>
<xsl:value-of disable-output-escaping="y
es" select="rss:description"/>
<br/>
<span class="date">
<xsl:value-of select="dc:creator"/>
</span>
</div>
<hr/>
</xsl:for-each>
</div>
</xsl:template>
</xsl:stylesheet>