cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthias Fischer" <m.fisc...@abc-media.de>
Subject Frames
Date Mon, 02 Sep 2002 10:00:25 GMT
I was looking on the web for information on the xalan:write command;
unfortunately, with the information I found I couldn't get further than the
below example.

Thie following code doesn'
t work with me, but I cannot figure out why. Can anybody give me a decisive
hint, please?

Matthias

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xalan="http://xml.apache.org/xalan"
		exclude-result-prefixes="xalan">

<template match="/">
	<html>
		<head>
		</head>
		<frameset rows="70%,30%">
			<frame src="frame-1.html" name="body"/>
			<frame src="frame-2.html" name="add"/>
		</frameset>
		<noframes>
		</noframes>
	</html>
</template>


<xalan:write file="frame-1.html">
<xsl:template match="/">
 <html>
  <head>
  </head>
  <body>
		<xsl:apply-templates />
		<xsl:text>Test #1.</xsl:text>
  </body>
 </html>
</xsl:template>
</xalan:write>

<xalan:write file="frame-2.html">
<xsl:template match="/">
 <html>
  <head>
  </head>
  <body>
		<xsl:apply-templates />
		<xsl:text>Test #2.</xsl:text>
  </body>
 </html>
</xsl:template>
</xalan:write>


</xsl:stylesheet>



---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message