Do you know the namespace URI of the "thr" prefix? You'll need to reference that in the top of your XSLT, then you can use it in your XPath expressions.
— Don't think of it as verbosity - it's just like using a @using statement in C# so you don't have to say something like Int32 borderWidth = System.Web.UI.WebControls.Unit.Pixel(2) :-)
Support for Atom Threading Extensions?
In my Atom (Typepad) RSS feed, there is a count of the number of comments to the blog article. It is thr:count in the link tag.
Hi Connie,
Do you know the namespace URI of the "thr" prefix? You'll need to reference that in the top of your XSLT, then you can use it in your XPath expressions.
Cheers, Lee.
I have xmlns:atom=http://www.w3.org/2005/Atom which gives me all the basic references. I have to add another one for the threading extensions?
Yup - gotta love how verbose XSLT is! ;-)
I did a quick google for the namespace URI, you'll need to add this to the top of your XSLT namespaces:
Cheers, Lee.
Hi Connie,
As Lee says, you'll need the Namespace-URI assigned to that prefix - it'll look like the atom one, e.g.: xmlns:thr="http://xxx.yyy.zzz"
You'll need to add it to the stylesheet to properly select the attribute.
/Chriztian
OK - y'all got that sorted out :-)
— Don't think of it as verbosity - it's just like using a @using statement in C# so you don't have to say something like Int32 borderWidth = System.Web.UI.WebControls.Unit.Pixel(2) :-)
/Chriztian
Done. Once I correctly formatted the value, works like a charm!
<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"
exclude-result-prefixes="msxml umbraco.library"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:thr="http://purl.org/syndication/thread/1.0">
. . .
<xsl:value-of select="atom:link[@rel='replies']/@thr:count"/>
is working on a reply...