Subject:Name of XSL and XML files inserted at top of HTML Author:David Sampson Date:18 Sep 2005 02:18 AM
I am using the Home version... when I transform my xml file into html... the first line just above the HTML tag has the full path name's of the xml and xsl files.
For Example:
Subject:Name of XSL and XML files inserted at top of HTML Author:(Deleted User) Date:19 Sep 2005 04:04 AM
Hi David,
XSLT has two predefined templates, used for elements and text nodes: the one matching elements will simply recurse on the child nodes, the one for text nodes will output the content of the node. I guess in your stylesheet you have removed the template matching the root node (<xsl:template match="/">..) and place your logic in the template for an inner node.
This means that all the text nodes in your source XML will be printed until that element is found.
Try adding back this template:
<xsl:template match="/">
<xsl:apply-templates select="**insert the XPath to the node**"/>
</xsl:template>