forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicola Ken Barozzi <nicola...@apache.org>
Subject Re: Link to XML (Re: cvs commit: ...document2html.xsl)
Date Tue, 18 Mar 2003 07:28:36 GMT


Jeff Turner wrote, On 18/03/2003 7.27:
> On Mon, Mar 17, 2003 at 05:03:57PM -0000, nicolaken@apache.org wrote:
> 
>>nicolaken    2003/03/17 09:03:56
>>
>>  Modified:    src/resources/skins/common/xslt/html document2html.xsl
>>  Log:
>>  Enabling fixed version of the multiple output links on each page
>>  print - pdf - xml
> 
> 
> Thing is, the XML link adds.. ~45% to the size of the generated output
> (3.1M -> 4.5M) and slows things down by 35% (2:11 -> 2:57).  From what I
> can see, being able to view the XML has nothing but curiousity value.  So
> how about we have it switched off by default?  

Yes, that's the idea. In fact:

>>  Still dunno how to disable them; I added attributes like for the PDF but
>>  dunno where it's set :-/

I want to disable them by default too (and PDF?)

> For a user-tweakable thing, an entry in skinconf.xml would be best:
> 
> <xsl:param name="config-file" select="'../../../../skinconf.xml'"/>
> <xsl:variable name="config" select="document($config-file)/skinconfig"/>
> ..
> <xsl:if test="$config/disable-xml-link = 'false'">
>   ...
> </xsl:if>

I think so too. Thanks for the tip. Will do now.

-- 
Nicola Ken Barozzi                   nicolaken@apache.org
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)
---------------------------------------------------------------------


Mime
View raw message