I think the problem is that as it cant currently match it may be printing
all the PCDATA out?
----- Original Message -----
From: "Nikolas Nehmer" <Nikolas(_dot_)Nehmer(_at_)t-online(_dot_)de>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Monday, March 01, 2004 1:31 PM
Subject: [xsl] unsuspected output
Hi,
The following xsl produces unsuspected output:
<xsl:stylesheet>
...output and variable declaration...
<xsl:template match="iese.Objectlist:Objectlist">
<html>
<body>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=UTF-8"/>
<link rel="stylesheet"
type="text/css"
href="file://{$home_directory}/application/CSS/stylesheet.css"/>
<title><xsl:value-of
select="iese.Objectlist:name"/></title>
</head>
<h1><xsl:value-of
select="iese.Objectlist:name"/></h1>
<xsl:for-each
select="iese.Objectlist:objectlink">
<xsl:variable name="file"
select="concat('file://',$home_directory,@href)"/>
<xsl:apply-templates
select="document($file)/*" mode="minimal_list">
<xsl:with-param
name="file" select="$file"/>
</xsl:apply-templates>
</xsl:for-each>
<p>
<a
href="http://validator.w3.org/check/referer">
<img
src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!"
style="border:0;width:88px;height:31px"/>
</a>
<a
href="http://jigsaw.w3.org/css-validator/">
<img
style="border:0;width:88px;height:31px"
src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Valid CSS!" />
</a>
</p>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
This XSL should not produce any output except the Heading because the
template which is applied by the apply-templates element is not present
(not included jet). But it produces output, namely the content of
document($file)/* (the select statement in apply-templates). Why? Any
suggestions?
Best regards,
Nick
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list