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
Hi All
Got an odd problem with a bit of xslt
<xsl:value-of select="umbraco.library:GetXmlNodeById(1054)"/>
returns 2 attributes of that node, all well and good
<xsl:value-of select="umbraco.library:GetXmlNodeById(1054)/@nodeName" /> <xsl:value-of select="umbraco.library:GetXmlNodeById(1054)/@nodeType" />
returns the nodename and nodetype ID of the node, again, all good.
but the following return nothing. I've checked and rechecked the alias's and they're all fine.
<xsl:value-of select="umbraco.library:GetXmlNodeById(1054)/data [@alias = 'myfirstalias']" />!!<xsl:value-of select="umbraco.library:GetXmlNodeById(1054)/data [@alias = 'mysecondalias']" />!!<xsl:value-of select="umbraco.library:GetXmlNodeById(1054)/@nodeTypeAlias" />
Any ideas?
Thanks
Shaun
the examples are written with the old scheme of xslt
read here for more info http://our.umbraco.org/wiki/reference/xslt/45-xml-schema
Thanks Eran. Stupid me. I was reusing some older scripts and forgot about the change.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
umbraco.library:GetXmlNodeById not returning data
Hi All
Got an odd problem with a bit of xslt
<xsl:value-of select="umbraco.library:GetXmlNodeById(1054)"/>
returns 2 attributes of that node, all well and good
<xsl:value-of select="umbraco.library:GetXmlNodeById(1054)/@nodeName" />
<xsl:value-of select="umbraco.library:GetXmlNodeById(1054)/@nodeType" />
returns the nodename and nodetype ID of the node, again, all good.
but the following return nothing. I've checked and rechecked the alias's and they're all fine.
Any ideas?
Thanks
Shaun
the examples are written with the old scheme of xslt
read here for more info http://our.umbraco.org/wiki/reference/xslt/45-xml-schema
Thanks Eran. Stupid me. I was reusing some older scripts and forgot about the change.
is working on a reply...