Vim's syntax highlighting for XML/XSL is great, except it turns off all syntax highlighting in CDATA regions. Is there a way to turn on syntax highlighting on in CDATA regions?
At work, we have a lot of XSL code embedded within other XML documents. It would be great if I could get all of the goodness of XML editing for the embedded XSL code as well without having to temporarily remove the CDATA tags, or copy the CDATA content into a temporary file.
Example:
<root>
<with type="xsl"><![CDATA[
<xsl:template match="/">
<!-- XSL content here -->
</xsl:template>
]]>
</with>
</root>
The XSL is always contained within , so there is something to match against.
We also sometimes embed Javascript inside CDATA regions as well. It would be nice to turn on Javascript syntax highlighting for those regions.