xsl-list
[Top] [All Lists]

Re: Streamlining XSL and transform performance (how does it actually work?)

2004-03-19 09:30:02
Hi Kimberly,

Thanks for the help, this list is fantastic!

Just a suggestion, but I found that when dealing with large files, if I
kept the XML element names as small as possible it was faster in terms
of XML file download across a network or over the internet.

Unfortunately I have no control over the XML file, but it is all being 
run on a local machine, so network performance isn't an issue.

OK, a couple more questions if you can bear it...

Where we have..

<XSL:template match="AnswerSet">
        <xsl:apply-templates select="Answer[(_at_)name='ticdesc']"/>
</xsl:template>
<xsl:template match="Answer[(_at_)name='ticdesc']">
        <p><xsl:value-of select="TextValue"/></p>
</xsl:template>>

There are going to be a lot of instances when I want to be able to 
'extract' a specific value like the value of ticdesc.  Is there any way 
of making the template more versatile so that the name ticdesc is passed 
to is when the template is applied?

Also, going along the same lines, is it possible to set and read 
variables within the XSL file?

Thanks again for all the help.
-- 
Cheers,

Julian Voelcker
United Kingdom



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



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