[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Caching while applying XSL using SAX

Subject: Caching while applying XSL using SAX
From: "Amrit Pal Singh" <ampsingh@xxxxxxxxx>
Date: Tue, 19 Apr 2005 12:23:52 +0530
while in xsl
Hi,

In my application I'm using SAX based approach for parsing xml and
applying xsl on it. As SAX is event based, I just want to know that how
the reference in xsl, to out of context elements is  resolved.

e.g.
<xsl:template
match="*[local-name(.)='Database']/*[local-name(.)='Employees']"
mode="mode1">

    <xsl:variable name="refNode2"
select="../../*[local-name(.)='Departments'][*[local-name(.)='deptId'] =
$ref1]"/>

    .....
</xsl:template>

In example above, how line 2 is evaluated.
Do the processor cache all the elements after and including 'Employees',
till the  element 'deptId' arrives? or Even in SAX approach object model
of XML being parsed is made by the processor, to resolve the references
to element previously arrived.

Thanks,
Amrit

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.