ASP Error: 70
Description: Permission denied
Source: Microsoft VBScript runtime error

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

RE: i dont understand this zvon tutorial (NEWBIE)

Subject: RE: i dont understand this zvon tutorial (NEWBIE)
From: Stuart Brown <sbrown@xxxxxxxxxxxxx>
Date: Mon, 9 Sep 2002 17:29:14 +0100
xsl tutorial escape
Hi Thomas,

> http://www.zvon.org/xxl/XSLTutorial/Output/example72_ch2.html
> 
> why is the output
> BBB id=b1
> BBB id=b2
> BBB id=b3
> BBB id=b4 
> DDD id=d1
> BBB id=b5
> 
> the first template is transforming all BBB and then, the next 
> template is doing the DDDs.

No, the first template is not transforming all the BBBs. The first template
(and the order of templates in a stylesheet does not actually matter) is a
rule for what to do *when* a BBB is encountered in the input. An XSLT
stylesheet is *not* a ordered series of instructions ("Take all the BBBs and
do X with them, then take all the DDDs and do Y with them"), it is a set of
event-based rules ("When you find a BBB do X with it, when you find a DDD do
Y with it"). If you bear in mind that there is a default rule for elements
which says "If there is no matching rule for this, process any element
and/or text children in document order", and that the processor starts with
the document element, you should be able to work out why the Zvon example
outputs as it does.

See http://www.dpawson.co.uk/xsl/sect2/nono.html#d80e1070.

Cheers,

Stuart


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


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.