I am trying to get all the Media images and then get the data alias company name and match that to a variable. But I am failing at the first hurdle, I cant even get all the images which reside in the media section
Do you get the error when saving the xslt? If so, it's due to the fact that your for-each does not necessarily hold a value (xslt's are checked against a node when saving - but it's not garantueed that node - think it's the top level node - has a value for that property)
Anyway, it's best practise to surround with an xsl:if statement to avoid the runtime error.
Error when getting media images
Hi All,
I am trying to get all the Media images and then get the data alias company name and match that to a variable. But I am failing at the first hurdle, I cant even get all the images which reside in the media section
This my current code
This is the error I am getting
Any help greatly appreciated
Thanks
Tom
Tom,
Do you get the error when saving the xslt? If so, it's due to the fact that your for-each does not necessarily hold a value (xslt's are checked against a node when saving - but it's not garantueed that node - think it's the top level node - has a value for that property)
Anyway, it's best practise to surround with an xsl:if statement to avoid the runtime error.
Hope this helps.
Regards,
/Dirk
Cheers Dirk
And thanks for the advice on best practices.
Tom
is working on a reply...