XSLT macro in parent node accessing data from child node
Hi everyone,
This is probably something really easy that I just need to get my head wrapped around. :) Here's the situation:
I have a master template where I want to use a page title macro. I have a child template that specifies the page title to be used.
Now, when I try to access the currentPage when viewing a page that uses the master template, it works fine. When I try to access a page using the child template, I can't seem to get any data out of currentPage.
I'm just using a select like: $currentPage/nodeName, for testing. Is there something else I need to do so that it supports child nodes too?
Also, is there an easy way to dump the currentPage parameter values that the macro is seeing?
XSLT macro in parent node accessing data from child node
Hi everyone,
This is probably something really easy that I just need to get my head wrapped around. :) Here's the situation:
I have a master template where I want to use a page title macro. I have a child template that specifies the page title to be used.
Now, when I try to access the currentPage when viewing a page that uses the master template, it works fine. When I try to access a page using the child template, I can't seem to get any data out of currentPage.
I'm just using a select like: $currentPage/nodeName, for testing. Is there something else I need to do so that it supports child nodes too?
Also, is there an easy way to dump the currentPage parameter values that the macro is seeing?
Thanks!
I'm not sure what was changed, but it now appears to be working the way I thought it should. For reference, I am using:
is working on a reply...