On Mon, 2007-11-05 at 08:47 +0100, Carlos Martínez Peña wrote:
> Hello Grzegorz,
>
> It's dificult to show you some code of my template because it is
> generate dinamically with a XSLT. I can show you the code of xsl than
> create the template (the interesting lines).
>
> -----------------------------------------------------------------------
>
> *The main of my template (*generarTemplate.xsl*):*
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:stylesheet
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
> xmlns:ft="http://apache.org/cocoon/forms/1.0#template"
> xmlns:fi="http://apache.org/cocoon/forms/1.0#instance"
> xmlns:jx="http://apache.org/cocoon/templates/jx/1.0">
> <xsl:import href="../../../../recursos/xsl/global.xsl" />
> <xsl:import href="solicituds-global.xsl" />
> <xsl:output method="xml" indent="yes" media-type="text/html"
> encoding="UTF-8"
> doctype-system="http://www.w3.org/TR/html4/loose.dtd"
> doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" />
>
>
> <xsl:template match="/">
> <html>
> <jx:import
> uri="resource://org/apache/cocoon/forms/generation/jx-macros.xml" />
> <head>
> <link type="text/css" rel="stylesheet"
> href="{$intranet}/recursos/css/solicituds.css" />
> <link type="text/css" rel="stylesheet"
> href="{$intranet}/recursos/css/yuicalendar.css" />
> <script>djConfig = { bindEncoding: "utf-8" };</script>
> </head>
> <body>
> <xsl:apply-templates select="/SOL_ALTA_SOLICITUD/TIPUS_SOLICITUD"
> mode="emplenar" />
> </body>
> </html>
> </xsl:template>
>
> -----------------------------------------------------------------------
>
> *The xsl:template of the repeater (*generarTemplate.xsl*)*
>
> <xsl:template match="CAMP" mode="repeater">
> <label for="[EMAIL PROTECTED]">
> <ft:widget-label id="[EMAIL PROTECTED]"/>
> </label>
>
> <ft:repeater id="[EMAIL PROTECTED]">
> <div>
> <table class="taula" style="width:86%;">
> <tr>
> <xsl:apply-templates select="VALORS/VALOR/CAMPS/CAMP" mode="capcelera" />
> <th align="left">Opcions</th>
> </tr>
> <tbody>
> <ft:repeater-rows>
> <tr>
> <xsl:apply-templates select="VALORS/VALOR/CAMPS/CAMP" mode="columna" />
> <jx:if test="${form.getChild('formulari')}">
This is one problem as I see it.
XSL transformer will interpret it as xsl function call. You need to
escape it or write it in a different way. E.g.
<jx:if>
<xsl:attribute name="if">
${form.getChild('formulari')}
</xsl:attribute>
</jx:if>
I reckon this way it will work
HTH
salu2
--
Thorsten Scherler thorsten.at.apache.org
Open Source Java consulting, training and solutions
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]