Very strange, but perhaps there is more going on than is immediately obvious from what you've posted. For instance, in a named template one would typically pass in a parameter. Where is your @ContactImage coming from? Should it really be a variable, $ContactImage?
If you move the content of your named template into the main "/" template, do you get proper output? In other words, what does this generate for output?
XSLT div tag output
When I try to nest something into a div tag, the div tag is getting closed immediately.
Some code explains it better:
[code]
[/code]
The output is something like that:
[code]
[/code]
But shouldn't be the image in the div tag?!
Very strange, but perhaps there is more going on than is immediately obvious from what you've posted. For instance, in a named template one would typically pass in a parameter. Where is your @ContactImage coming from? Should it really be a variable, $ContactImage?
If you move the content of your named template into the main "/" template, do you get proper output? In other words, what does this generate for output?
[code]
...
[/code]
cheers,
doug.
Seems to be my fault. In one case the image attribute was empty so the rendered output was
[/code][code]
and the Internet Explorer doesn't like selfclosing div-tags and broke my page.
Thank you anyway. Problem solved ](*,)
[quote=Rodriguez]Seems to be my fault. In one case the image attribute was empty so the rendered output was
[/code][code]
and the Internet Explorer doesn't like selfclosing div-tags and broke my page.
Thank you anyway. Problem solved ](*,) [/quote]
You can change the xslt output to html instead of xml to avoid the problem with self closing tags.
is working on a reply...