ricksbrown / xslmin

An XSLT minifier
4 stars 0 forks source link

Suggestion: normalize space in the <xsl:preserve-space> directive #1

Closed ricksbrown closed 9 years ago

ricksbrown commented 10 years ago

From here: https://code.google.com/p/xslmin/issues/detail?id=7

Reported by tonyapuzzo, Feb 17, 2014 Thank you for xslmin! I have an XSL that has a lot of whitespace in the xsl:preserve-space/@elements attribute. That attribute could be normalized and would save several hundred bytes in my stylesheet.

Example Input:

<xsl:preserve-space elements="abbrev 
                              abbrev-journal-title
                              access-date
                              ...
                              addr-line"/>

Suggested Output:

<xsl:preserve-space elements="abbrev abbrev-journal-title access-date ... addr-line"/>