I use the Multi-node tree picker on a project for a navigation, but when I delete a node/page(that is selected in te mntp), I get a parsing error. My xslt looks like this:
This checks that the $node has an attribute call "isDoc" (which all content nodes have). Otherwise it's an <error> tag and the content node doesn't exist.
Error parsing with Multi-node tree picker
I use the Multi-node tree picker on a project for a navigation, but when I delete a node/page(that is selected in te mntp), I get a parsing error. My xslt looks like this:
Help is needed on this one, thank you.
Hi Niels,
When using the 'GetXmlNodeById' function, if the content node doesn't exist, then an <error> node is returned - which is causing you the headache.
The quick fix for this is to wrap an <xsl:if> condition around the list-item, like so:
This checks that the $node has an attribute call "isDoc" (which all content nodes have). Otherwise it's an <error> tag and the content node doesn't exist.
Hope this helps?
Cheers, Lee.
Yes! That did the trick. Thank you for the solution and the explanation.
Thanks again, Niels
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.