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

Re: First working draft of XSL

Subject: Re: First working draft of XSL
From: ht@xxxxxxxxxxxxxxx (Henry S. Thompson)
Date: 20 Aug 1998 15:07:38 +0100
Re: First working draft of XSL
Jeremy CALLES <Jeremy.Calles@xxxxxxxxxxxxxxx> writes:

> According to the 2.6.4 Matching the Root Node, '/' matches the root
> node.
> 
> Can the root node be matched by is name? 

Sorry this isn't clearer:  as 2.4.1 says, the root node is NOT an
element node, it is the root of node tree, whose only daughter is the
element node for the document element.

> Because when you write an XSL StyleSheet for a specific DTD, it could be
> easier,much more natural to find the root node if it could be matched by
> is name.

In the context of modular stylesheets, it sometimes makes sense to
distinguish a template for the root from templates for various
possible document elements.

Another way to think of it is that '/' matches the root, while '/doc'
matches the document element, provided it is called 'doc'.

Hope this helps,

ht
-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
	    Fax: (44) 131 650-4587, e-mail: ht@xxxxxxxxxxxxxxx
		     URL: http://www.ltg.ed.ac.uk/~ht/


 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.