Subject: Re: Perplexing Problem in Embedding Stylesheet
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 1 Nov 2001 00:36:07 GMT
|
I'm not sure if embedded stylesheets work in IE(especially if you
haven't declared the id to be of type ID) however if they did I would
expect that your styleshet would just produce the heading and the
paragraph NEWS from your template.
You have <xsl:for-each select="news/day">
but this will return nothing as it will execute on the root node of the
document and the root node soesn't have a child node "news".
you will need
<xsl:for-each select="root/news/day">
There is a _lot_ of difference between a root node, and an element node
that happens to be called root, even if that element is the top level
element in the document tree.
David
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|