cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giacomo Pati <Giacomo.P...@pwr.ch>
Subject Re: TagLib - placing logic
Date Wed, 28 Jun 2000 17:31:22 GMT
On Wed, Jun 28, 2000 at 02:29:05PM +0100, Jeremy Quinn wrote:
> 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>

Did you specify a root element?

   <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>
       <page> <!-- you need this to get into populateDocument -->
         <xsl:apply-templates/>
       </page>
     </xsp:page>
   </xsl:template>

Giacomo

-- 
PWR GmbH, Organisation & Entwicklung      Tel:   +41 (0)1 856 2202
Giacomo Pati, CTO/CEO                     Fax:   +41 (0)1 856 2201
Hintereichenstrasse 7                     Mailto:Giacomo.Pati@pwr.ch
CH-8166 Niederweningen                    Web:   http://www.pwr.ch


Mime
View raw message