The XPath shown will select all direct children of the '1064' node - which also includes the properties of that node; It's very likely that the stuff you do inside the loop is counting on the nodes to be Umbraco Document nodes, so you need to add the @isDoc predicate, to filter out the property elements:
If you're not only after the direct children, but also their children (and so on), go for the descendant:: axis instead, which can be abbreviated as a double-slash:
The only way I can figure out how to do it is by putting some C# code in the masterpage, probably not the best practise, but I can;t figure out another way of doing it.
New Scheme xslt Example
Following the examples in XSLT Examples updated to New Schema
Why doesn't this work?
Unless someone else knows of a different way to select ALL nodes under a certain node where it is NOT a DateFolder?
Hi Peter,
The XPath shown will select all direct children of the '1064' node - which also includes the properties of that node; It's very likely that the stuff you do inside the loop is counting on the nodes to be Umbraco Document nodes, so you need to add the @isDoc predicate, to filter out the property elements:
If you're not only after the direct children, but also their children (and so on), go for the descendant:: axis instead, which can be abbreviated as a double-slash:
/Chriztian
Cheers Chriztian, you're a star!
No worries, Peter :-)
- I've corrected the error on the Wiki Page too - thanks for pointing that out!
/Chriztian
Hi Peter,
Did you delete the follow-up question, or did the forum eat it?
/Chriztian
I couldn't figure out how to delete it? I just edited it and removed the txt. Was having a brain-fart moment ;-)
I do have another question though which is at: http://our.umbraco.org/forum/using/ui-questions/26763-Rendering-a-UserControl-inside-of-an-xslt-Macro
The only way I can figure out how to do it is by putting some C# code in the masterpage, probably not the best practise, but I can;t figure out another way of doing it.
Peter.
is working on a reply...