Yeah that can be alittle tricky - I think this might work:
<xsl:variable name="isAttribute" select="starts-with($propertyName, '@')" />
<!-- Only one of these will actually output a value -->
<xsl:value-of select="$currentPage/@*[name() = substring($propertyName, 2)][$isAttribute]" />
<xsl:value-of select="$currentPage/*[name() = $propertyName][not($isAttribute)]" />
Selecting data from field with Macro param
The following code works perfect for all the document type properties except builtin fields like @nodeName, @@createDate etc
<xsl:variable name="propertyName" select="VALUE PASSED FROM MACRO" />
<xsl:value-of select="$currentPage/*[name()=$propertyName]"/>
Please help
Hi Anz,
Yeah that can be alittle tricky - I think this might work:
/Chriztian
Thanks.. That worked like a chram :)
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.