Perhaps I missing something glaringly obvious here so could do with an extra pair of eyes. I have simplified my example to make it easier to demonstrate.
Now for some reason all values are output except for $source. The datatype in the macro is a mediapicker however with debug/trace enabled on my page the macro is getting the required values so why is it not present when I try to use it or output its value?
Stack Trace:
renderMacro
Rendering started (macro: Image Gallery, type: 1, cacheRate: 0)
Thanks guys, I should have learnt by now as every time I use the mediaCurrent datatype I have problems like this. Lee, thanks your solution helped me spot the issue Tommy identified above. Out of interest what are the xmp tags?
<xmp> tags are to display 'example code' snippets. Part of HTML 3.2 and has been deprecated. They work the same as <pre> tags, but renders out less/greater-thans (instead of escaping them like <pre> does). As far as I'm aware none of the browsers have dropped support for it... so I'll keep using it for dev work.
I will stress that I only use this tag for debugging purposes ... never use it on a live site.
MediaPicker Node Id Always Missing
Perhaps I missing something glaringly obvious here so could do with an extra pair of eyes. I have simplified my example to make it easier to demonstrate.
Here is my XSLT:
Now for some reason all values are output except for $source. The datatype in the macro is a mediapicker however with debug/trace enabled on my page the macro is getting the required values so why is it not present when I try to use it or output its value?
Stack Trace:
Hi Simon,
if you want to get the id, you would probably want to do like this:
<xsl:variable name="source" select="/macro/Source/node/@id" />
Hi Simon,
Try dumping out the contents of the <macro> nodes... see whats getting through?
I looked for a typo, but everything seems correct.
Cheers, Lee.
Thanks guys, I should have learnt by now as every time I use the mediaCurrent datatype I have problems like this. Lee, thanks your solution helped me spot the issue Tommy identified above. Out of interest what are the xmp tags?
<xmp> tags are to display 'example code' snippets. Part of HTML 3.2 and has been deprecated. They work the same as <pre> tags, but renders out less/greater-thans (instead of escaping them like <pre> does). As far as I'm aware none of the browsers have dropped support for it... so I'll keep using it for dev work.
I will stress that I only use this tag for debugging purposes ... never use it on a live site.
http://www.w3.org/TR/REC-html32#xmp
is working on a reply...