lmi
[Top][All Lists]
Advanced

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

[lmi] Refactoring opportunities for xsl-fo files


From: Greg Chicares
Subject: [lmi] Refactoring opportunities for xsl-fo files
Date: Tue, 22 May 2007 13:56:08 +0000
User-agent: Thunderbird 1.5.0.10 (Windows/20070221)

The xsl-fo files seem to duplicate a lot of stuff. Would it be a
good idea to move the common parts into one file that they could
all share? For example, this routine:
  grep --after-context=13 'xsl:template name="limit-*string"' *.xsl
seems almost identical across files; I can't tell immediately at
a glance whether they're all equivalent. And here's a variable that
seems to differ only in that one variant includes a blank character
while another does not:
  <xsl:variable 
name="allletters">ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789&#xA0;</xsl:variable>
  <xsl:variable name="allletters"> 
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789&#xA0;</xsl:variable>
though I'm not sure whether there's a reason for any difference.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]