@Jan: Your solution is actually really good and I would recommend it, but unfortunately it adds the risk of breaking lots of other stuff for people (think <br>, <link> and <hr> tags etc.) which is a pain for people looking for a fix for the *current* problem :-)
Using xsl:if doesn't include closing tag
Trying to use the following code to insert a google ad inside of a blog roll
For some reason the closing tag </object> doesn't get rendered in the HTML and causes error. Is there anyway to resolve this?
Standard behaviour of xslt, empty tags get 'stripped', need to wrap it inside a CDATA section...
Hope this helps.
Regards,
/Dirk
Hi Shannon
I think what Dirk has posted is a good solution to your problem.
However I think you could also solve it by changing the output method from XML to HTML
In this line i the XSLT it says pr. default
<xsl:output method="xml" omit-xml-declaration="yes"/>
You can change it to
<xsl:output method="html" omit-xml-declaration="yes"/>
/Jan
Hi Shannon,
Current best fix for that would actually be to just render a comment inside the <object> element:
/Chriztian
Nice on Chriztian! It's so obvious I'm feeling ashamed I did not think of that. But hey...lesson learned...once again ;-)
/Jan
@Jan: Your solution is actually really good and I would recommend it, but unfortunately it adds the risk of breaking lots of other stuff for people (think <br>, <link> and <hr> tags etc.) which is a pain for people looking for a fix for the *current* problem :-)
/Chriztian
is working on a reply...