|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








