xsl-list
[Top] [All Lists]

unsuspected output

2004-03-01 06:31:30
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



<Prev in Thread] Current Thread [Next in Thread>