[xslt] Empty element rendering

If I write a XSL stylesheet that performs an identity transformation (changes nothing, just copies input to output) and apply it (using libxslt) to a XML document that contains elements of the form:

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

will the output document contain this exact form, or will it become:

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

As you can guess, I have a similar situation to this, and I'
m seeing that my output has "collapsed" the <script></script> to <script />, and because of this the scripts don't get loaded by (shudder) IE.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]