In a php file I have the following
<script id="svg-xml" type="text/template">
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<etc />
</script>
and <?
in the beginning of XML declaration is rendered as the short form of the PHP opening tag. My solution is to make PHP echo the <
sign and use it like <?='<'?>?xml version=...
. Is there any other/better option out there that is more elegant?
[EDIT] I'm looking for an alternative PHP approach, if any. Also, I'm not planning to turn short tags off since I'm using many of them here and there in this page.