|
Subject: Re: [xsl] unsuspected output From: "Andrew Curry" <andrew.curry@xxxxxxxxxxxx> Date: Mon, 1 Mar 2004 14:08:00 -0000 |
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.Nehmer@xxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] unsuspected output, David Carlisle | Thread | RE: [xsl] unsuspected output, Jarno . Elovirta |
| Re: [xsl] unsuspected output, David Carlisle | Date | AW: [xsl] unsuspected output, Nikolas Nehmer |
| Month |