W3C home > Mailing lists > Public > www-style@w3.org > July 2001

RE: % height on <html> (was Re: Table height/width properties)

From: Jelks Cabaniss <jelks@jelks.nu>
Date: Tue, 3 Jul 2001 20:20:29 -0400
To: <www-style@w3.org>
Message-ID: <000f01c1041f$21998110$6401a8c0@alex1.va.home.com>
Björn Höhrmann wrote:

> * Tantek Celik wrote:
> > The document tree consists of elements, therefore the root 
> > of the document tree is the root element.
> No, the document tree consists of nodes and the top-most node 
> is the root node. Consider e.g. the following document
>   <?xml version='1.0'?>
>   <?php print("Hello World"); ?>
>   <elem />
> The root node has two children, the processing instruction 
> node and the element node. The CSS Level 2 specification 
> talks exactly about this root node and not the document 
> element, that is defined as beeing a children of the root 
> node. See the XML Infoset, the DOM or the XPath and XQuery 
> Data Models on this issue, they all say the same thing.

Example ...

	<xsl:template match="/">
		<xsl:apply-templates />

where the XPath "/" means the root of the whole thing, not just <elem
/>.  Subordinate templates can then match on the php processing
instruction, which would not have been possible if "/" meant the root

Received on Tuesday, 3 July 2001 20:20:57 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:58 UTC