Problem with with xsl conversion

Post Reply
david.huber0
Posts: 22
Joined: Wed Mar 03, 2010 5:47 am

Problem with with xsl conversion

Post by david.huber0 »

We have a problem with the xsl conversion. We use the pre release version 6.0

during the xsl conversion if a tag has no inner content like

<script src="/test.js" type="text/javascript">
</script>

the end tag is dropped.
That may be ok for html tags but not for the script tag (http://www.w3.org/TR/REC-html40/interact/scripts.html).

Then when we include a javascript file, it shows an empty page.
User avatar
jason112
Site Admin
Posts: 347
Joined: Tue Oct 26, 2004 5:35 pm

Problem with with xsl conversion

Post by jason112 »

Correct, earlier pre-release builds have a problem with the XML serializer, where it doesn't take some XSL conventions into consideration and treats the output like a plain XML document.

This has been fixed internally, and will be part of a future update. For "get it to work this second" functionality, you could do a <sandr> after the transform to put the end tag back on.
Post Reply