xsl-list
[Top] [All Lists]

RE: performance when using document() function

2003-04-01 03:09:53
I have found that often you have on xml file that you wish to use more than
once, for example a mapping file.

A good timesaving is to put it into a variable at the root of the
template...

        <xsl:variable name="mapping" select="document('mapping.xml')/root"
/>

Then use the variable instead of the document

        $mapping

-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com] On Behalf Of 
Stevenson Ngila
Sent: 01 April 2003 10:38
To: Xsl-List(_at_)Lists(_dot_) Mulberrytech. Com
Subject: [xsl] performance when using document() function


Does anyone know what the performance consequences are 
when using the document() function? 

Tips on improving performance are welcome.


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>