1 users online. Create an account or sign in to join them.Users
Select root-page "Name"
This is an open discussion with 2 replies, filed under XSLT.
Search
You're missing a slash / in front of data/...:
<h1><xsl:value-of select="/data/navigation/page[@handle = $root-page]/name"/></h1>
$%'!
Thanks! :-)
Create an account or sign in to comment.
Hi,
I want to display the value of the root-page as heading. My xml looks like this:
<data><navigation> <page handle="home" id="64"> <name>Homepage</name> <types> <type>index</type> </types> </page> <page handle="cat1" id="77"> <name>Category1</name> </page> <page handle="cat2" id="79"> <name>Category2</name> <page handle="subcat1" id="80"> <name>Subcategory1</name> </page> </page>And I thought I could use something like this: