cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Painter-Wakefield <paint...@mc.duke.edu>
Subject Re: AW: document() in xsl:variable -> low performance
Date Mon, 03 May 2004 14:45:16 GMT




I read a little further on the bug reports, but I didn't understand
everything.  Does this only happen when using a custom URI such as
"cocoon:/...."?

I'm wondering how difficult it would be to patch this in Xalan.  Knowing
nothing about it, of course, it is easy to assume it is easy.....

-Christopher



|---------+---------------------------->
|         |           "Nils"           |
|         |           <cocoon_list@loli|
|         |           li.de>           |
|         |                            |
|         |           05/03/2004 10:33 |
|         |           AM               |
|         |           Please respond to|
|         |           users            |
|         |                            |
|---------+---------------------------->
  >--------------------------------------------------------------------------------------------------------------|
  |                                                                                      
                       |
  |       To:       <users@cocoon.apache.org>                                      
                             |
  |       cc:                                                                            
                       |
  |       Subject:  AW: document() in xsl:variable -> low performance                 
                          |
  >--------------------------------------------------------------------------------------------------------------|




I tried a lot possibilities but I always get the same slow result.

I tried to set $temp_lang with document() and to set $lang with $set_lang,
same result.

I'm right now restructuring my webpage :-(((

Regards,
Nils

> -----Urspr√ľngliche Nachricht-----
> Von: Christopher Painter-Wakefield [mailto:paint007@mc.duke.edu]
> Gesendet: Montag, 3. Mai 2004 16:26
> An: users@cocoon.apache.org
> Betreff: Re: document() in xsl:variable -> low performance
>
>
>
>
>
>
> Ouch!  I make heavy use of the document() function for
> aggregation. Sitemap aggregation would be a pain to maintain,
> because the stuff I need to aggregate comes rather late in
> the pipeline (layout information), whereas the generation and
> early transformation steps can vary a lot. XInclude/CInclude
> could work, but I like the cleanness and flexibility of using
> the document() function.
>
> Does it help any to take another variable on some subtree of
> the variable?
>
> Does it make a difference if you use xsltc?
>
> -Christopher
>
>
>
>
> |---------+---------------------------->
> |         |           Joerg Heinicke   |
> |         |           <joerg.heinicke@g|
> |         |           mx.de>           |
> |         |                            |
> |         |           05/02/2004 05:50 |
> |         |           PM               |
> |         |           Please respond to|
> |         |           users            |
> |         |                            |
> |---------+---------------------------->
>
> >-------------------------------------------------------------
> -------------------------------------------------|
>   |
>                                                    |
>   |       To:       users@cocoon.apache.org
>                                                    |
>   |       cc:
>                                                    |
>   |       Subject:  Re: document() in xsl:variable -> low
> performance                                            |
>
> >-------------------------------------------------------------
> -------------------------------------------------|
>
>
>
>
> On 02.05.2004 23:37, Nils wrote:
>
> > Hello,
> >
> > In a stylesheet, I have this in the first line, outside of any
> > template:
> >
> > <xsl:variable name="lang"><xsl:value-of
> > select="document('cocoon:/getxml')/context/lang"/></xsl:variable>
> >
> > In the templates of this xsl I use the variable $lang about
> 40 times.
> > The procession of this stylesheet is very slow.
> >
> > When I reduce the use of the variable $lang to one or none,
> it's very
> fast.
> > When I use "en" (without quotes) instead of <xsl:value-of
> > select="document('cocoon:/getxml')/context/lang"/> it's
> very fast, as
> well.
> >
> > --> Does that mean, that everytime I use $lang cocoon executes
> > document('cocoon:/getxml') ??
>
> Yes, that's a "feature" of Xalan.
> http://issues.apache.org/bugzilla/show_bug.cgi?id=2425
> http://issues.apache.org/bugzilla/show_bug.cgi?id=4257
>
> > --> How can I avoid that?
>
> Don't use document(). Include the document in the sitemap by
> using sitemap aggregation (if it is a fixed number of known
> files) or x/cinclude.
>
> Joerg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message