This is making me feel like ive learnt nothing in the last year. Basically I'm wanting to test the nodetype against the string "Gallery", so i can filter out any gallery node types. Currently im using the line
don't forget xml is case sensitive (check the attribute and check the value of the attribute) Also you might want to print the actual value of @nodeTypeAlias, to see what's in there.
Simple XSLT Test
Hi all
This is making me feel like ive learnt nothing in the last year. Basically I'm wanting to test the nodetype against the string "Gallery", so i can filter out any gallery node types. Currently im using the line
But its not working.
Thanks in advance
Alec
If you're inside a for-each loop, try<xsl:when</span><span class="pln"> </span><span class="atn">test</span><span class="pun">=</span><span class="atv">"current()/@nodeTypeAlias = 'Gallery'"</span><span class="tag">></span>
Although I have used the sytnax you've used above before
and it worked. I'd also check that capitalisation is correct, nodes all published etc
Urgh, forum ate my copy paste
Although like I say, I have used your syntac before and it worked ok.
Ok solved it, the problem was i was writing in the wrong XSL script.
thus proving I have learnt nothing!
Thanks anyway!
Forgot to mention that the soultion provided by Rayne is perfectly correct,
again thanks!
don't forget xml is case sensitive (check the attribute and check the value of the attribute) Also you might want to print the actual value of @nodeTypeAlias, to see what's in there.
is working on a reply...