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

Re: Apply-templates - how to omit top level element ta

Subject: Re: Apply-templates - how to omit top level element tags?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 9 Sep 2005 09:54:05 +0100
Re:  Apply-templates - how to omit top level element ta
> But the output changed from something I could publish to something that
> would be very wrong to publish.  And if that change was buried deep in
> the output, well, OUCH because we might not catch it.  That's why I say
> XSL is fragile.

I honestly don't understand your comment here.
You clearly have a processing model in mind that makes this behavior
seem strange, but honestly I don't know what you find strange here.

When you are using push model (that is template matching) then
essentially you are executing the _document_ and each node in the
document fires code that is defined in a matching template.

So saying that changing the template for Name changes the processing at
arbitrary points in the process, whenever <Name> appears is like saying
that if you change a C program and change the definition  of a function 
doname(..) then the processing changes whever the function doname iis
called, and without knowing where or if that function is called, you
don't know what effect changing the function will have. This is all
true, but it's not surprising, and not particular to xslt.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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.