The old version was pretty easy and almost everything worked immediately, but I've got some issues with my xslt, especially when retrieving property values. I've tried dozens of examples and checked the forums, but it didn't help at all. The XML source seems ok, if I use <umbraco:Item etc. I can get the value, but...the website is multilangual. I've got the same problem with my navigation.
I've tried to replace data[@alias='pageHeader'] with pageHeader, but no cigar. Can anybody please help me?!
several xslt problems after upgrading.
The old version was pretty easy and almost everything worked immediately, but I've got some issues with my xslt, especially when retrieving property values. I've tried dozens of examples and checked the forums, but it didn't help at all. The XML source seems ok, if I use <umbraco:Item etc. I can get the value, but...the website is multilangual. I've got the same problem with my navigation.
I've tried to replace data[@alias='pageHeader'] with pageHeader, but no cigar. Can anybody please help me?!
my code is like this:
<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">
<xsl:output method="html" omit-xml-declaration="yes"/>
<xsl:param name="currentPage"/>
<xsl:template match="/">
<h3>
<xsl:variable name="title">
<xsl:choose>
<xsl:when test="string($currentPage/data[@alias='pageHeader']) != ''">
<xsl:value-of select="$currentPage/data[@alias='pageHeader']" disable-output-escaping="yes" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$currentPage/@nodeName" disable-output-escaping="yes"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
</h3>
<xsl:value-of select="$currentPage/data[@alias='bodyText']" disable-output-escaping="yes" />
</xsl:template>
</xsl:stylesheet>
I'm sorry I've already seemed to fix this, thanks to http://our.umbraco.org/forum/developers/xslt/10462-Simple-tool-to-help-you-convert-xslt-to-the-new-v45-schema
is working on a reply...