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

transforming the least possible xml

Subject: transforming the least possible xml
From: Stephen Ciscola <cravenblackbird@xxxxxxxxx>
Date: Sat, 7 Oct 2006 11:04:10 -0700 (PDT)
 transforming the least possible xml
Hi,

I have a proprietary, memory resident work app, that
I'll omit the inner details on for brevity.

But basically for a client request, it obtains a small
XML file, modifies all the <link> elements to include
a string like CLIENT_ID in it(a client provided
parameter is passed to the xslt processor which will
replace CLIENT_ID). 

I then apply my stylesheet to the updated XML file,
and return the resulting HTML output to the client.

To save time, I cache the intermediate XML where all
the <link> elements were modified to include
CLIENT_ID, so at least that doesn't have to be done
more than once.

So for subsequent requests the only thing that is
actually changing is CLIENT_ID. I'd like to figure out
way to effectively only parse/process that part of the
sheet.

I tried converting the output to XHTML, and then
applying a new style sheet with one template to match
<link>blah CLIENT_ID blah</link>, but it takes longer
;/ because the resulting XHTML file is quite nasty
(others control the HTML look), it takes longer to
parse.

I feel like there's a solution here escaping
me...using includes....stylesheet to create stylesheet
but I can't figure out an intelligent way to do it..

I'm using libxml libxslt based tools, and I have no
choice but to stick with those really.

thank you for any suggestions!

Stephen

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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

Buy Stylus Studio Now

Cast Your Vote

We need your help – Vote for DataDirect XML Products!

  • Best SOA or XML site

Winners and finalists announced at SOA World Conference in November.

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-2007 All Rights Reserved.