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
Using the old schema in 4.0.2 I want to select a node by the value of a specific data
this would be much easier in the new schema
the following doesn't work
<xsl:variable name="reportData" select="umbraco.library:GetXmlNodeById($reportHome)/node [data=$dealerId and data/@alias='dealerID']"/>
if another data node has the same value then this will return the node
using the old schema how would I say select the node with the value specified only when the data is of the specified name?
Hi John,
This should do it:
<xsl:variable name="reportData" select="umbraco.library:GetXmlNodeById($reportHome)/node[data[@alias = 'dealerID'] = $dealerId]" />
/Chriztian
thank you Chriztian that's absolutely brilliant :D
been struggling with my predicate syntax
i knew i could nest it somehow - but this is perfect - thank you again
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
old schema get node by data value
Using the old schema in 4.0.2 I want to select a node by the value of a specific data
this would be much easier in the new schema
the following doesn't work
if another data node has the same value then this will return the node
using the old schema how would I say select the node with the value specified only when the data is of the specified name?
Hi John,
This should do it:
/Chriztian
thank you Chriztian that's absolutely brilliant :D
been struggling with my predicate syntax
i knew i could nest it somehow - but this is perfect - thank you again
is working on a reply...