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

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 />
	</xsl:template>

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
*element*.


/Jelks

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