I have properties in home page which are propely shown in home page with bellow xslt , but when i use this same xslt in child pages then properties values are not shown in child pages .....
How to show it ?
Can we something like recursive="true" in the xslt so that it will be shown in child pages also (i tried putting recursive="true" in xslt but its showing error in that line where i put recursive="true".)
how to use recursive="true" in xslt
Hello,
I have properties in home page which are propely shown in home page with bellow xslt , but when i use this same xslt in child pages then properties values are not shown in child pages .....
How to show it ?
Can we something like recursive="true" in the xslt so that it will be shown in child pages also (i tried putting recursive="true" in xslt but its showing error in that line where i put recursive="true".)
Bellow is my xslt .....
This is my xslt ...
Hi
If you want to get something from a parent page or even higher up the structure you can use the following:
<xsl:variable name="myValue" select="$currentPage/ancestor-or-self::*[@isDoc]/myproperty" />
The code above gets the property 'myproperty' from current page or any parent page.
Hi vaibhav,
To get the exact equivalent of recursive=true in XSLT you need to do the following:
- returns the first ancestor (or self) that has a value in the "propertyName" property.
/Chriztian
is working on a reply...