cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremy Quinn <je...@media.demon.co.uk>
Subject TagLib - placing logic
Date Wed, 28 Jun 2000 13:29:05 GMT
Hi

I am trying to write a TagLib.

I can't seem to get the code my TagLib assembles, placed into the
populateDocument method.

I can see from sql.xsl that it is possible to do.
I just can't work out what I am doing wrong.

How is it supposed to be done?

<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:xsp="http://www.apache.org/1999/XSP/Core"
	xmlns:xfp="http://www.hrc.wmin.ac.uk/XSP/XFP"
>


	<xsl:template match="xsp:page">
		<xsp:page>
			<xsl:apply-templates select="@*"/>
			<xsp:structure>
				<xsp:include>uk.ac.wmin.hrc.xsp.xfp.*</xsp:include>
			</xsp:structure>
			<xsl:apply-templates/>
		</xsp:page>
	</xsl:template>

	<xsl:template match="xfp:handler">
		<xsp:logic>
			{
				String xfpMethod = request.getMethod();
				[snip]
			}
		</xsp:logic>
		<xsl:apply-templates/>
		<xsp:logic>
			{
				/* if no errors */
					/* write changed resources */
					/* if post, use redirect */
				[snip]
			}
		</xsp:logic>
	</xsl:template>

	<xsl:template select="xfp:if-post">
		<xsp:logic>
		{
			if ("POST".equalsIgnoreCase(xfpMethod) {
				<xsl:apply-templates/>
			}
		}
		</xsp:logic>
	</xsl:template>

	[snip]

</xsl:stylesheet>

All the generated code is being put into the Class level.
It may look strange, but I'm making a kind of processing language TagLib.

Thanks for any help

regards Jeremy
-- 
   ___________________________________________________________________

   Jeremy Quinn                                           Karma Divers
                                                       webSpace Design
                                            HyperMedia Research Centre

   <mailto:sharkbait@mac.com>     		 <http://www.media.demon.co.uk>
    <phone:+44.[0].20.7737.6831>        <pager:jermq@sms.genie.co.uk>

Mime
View raw message