[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

unsuspected output

Subject: unsuspected output
From: Nikolas.Nehmer@xxxxxxxxxxx (Nikolas Nehmer)
Date: Mon, 1 Mar 2004 14:31:30 +0100
objectlist templates
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.