symphonists / html5_doctype

[Symphony 2] A cludge to enforce a basic HTML5 doctype regardless of your XSLT output
Other
17 stars 13 forks source link

Shorter regex? #7

Open designermonkey opened 11 years ago

designermonkey commented 11 years ago

I discovered today that you can use the following in xsl

<xsl:output method="xml"
    doctype-public=""
    doctype-system=""
    omit-xml-declaration="yes"
    encoding="UTF-8"
    indent="yes" />

which outputs

<!doctype html PUBLIC "" "">

I thought this might be of interest to you as if advised to users of this extension, it could mean a shorter regex match for parsing. Whether that would be a speed gain or not I'm not sure.

Anyhoo...

michael-e commented 11 years ago

That looks scary.