Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Changed the 4.0.3 schema from
<xsl:apply-templates select="$offerPanelRoot/node" mode="offerPanels"/>
and the template used is
<xsl:template match="node" mode="offerPanels">
to 4.5.2
<xsl:apply-templates select="$offerPanelRoot/*[@isDoc]" mode="offerPanels"/>
But the matching template is not called. Even tried match="*[@isDoc]" but no joy.
What am I doing wrong? Please advice.
Just tried to match everything (match="*") and seems to call the template now.
But the other problem I have is when testing a condition
<xsl:template mode="CollectionItem" match="*[@isDoc]">
<xsl:choose>
<xsl:when test="../../@nodeTypeAlias='OfferPanel'">
Earlier we use to test against @nodeTypeAlias. Not sure what to use for the new schema.
Ashok,
Use name(../..) = 'OfferPanel'
Cheers,
/Dirk
Great! Has worked.
Thanks again.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
apply-templates issue with Umbraco 4.5.2
Changed the 4.0.3 schema from
and the template used is
to 4.5.2
But the matching template is not called. Even tried match="*[@isDoc]" but no joy.
What am I doing wrong? Please advice.
Just tried to match everything (match="*") and seems to call the template now.
But the other problem I have is when testing a condition
<xsl:template mode="CollectionItem" match="*[@isDoc]">
<xsl:choose>
<xsl:when test="../../@nodeTypeAlias='OfferPanel'">
Earlier we use to test against @nodeTypeAlias. Not sure what to use for the new schema.
Ashok,
Use name(../..) = 'OfferPanel'
Cheers,
/Dirk
Great! Has worked.
Thanks again.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.