cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amelie Cordier" <acord...@insa-rouen.fr>
Subject Re: AW: AW: Generating dynamic attributes in xsp
Date Sun, 02 Mar 2003 18:03:29 GMT
hi again too :)

> hi again, see inline...

>> And in my xsl:
>>
>> <xsl:include href="logicsheet-util.xsl"/>
>> <xsl:param name="namespace-uri">http://mynamspace/mytag</xsl:param>
>>
>>
>> <xsl:template match="mytag:user[@year]">
>> 	<xsl:variable name="varyear">
>> 		<xsl:call-template name="get-string-parameter">
>> 			<xsl:with-param name="name">year</xsl:with-param>
>> 			<xsl:with-param name="required">true</xsl:with-param>
>> 		</xsl:call-template>
>> 	</xsl:variable>
>> 	<xsl:call-template name="mytesttemplate"/>
>> </xsl:template>
>>
>>
>> As soon as I had "[@year]" on my match xsl:template, the
>> "<xsl:call-template name="mytesttemplate"/>" instruction isn't
>> executed anymore.
>
> that should be the predicate as mentioned above. in your example markup
> your <mytag:user> element didn't have the attribute (@year) so the
> template didn't match.
>

I agree with you but each time I add "year" or "year or @year" or "@year
or year", cocoon crashes with this error :

// start error (lines 95-95) "  expected"
      import
// end error

I'm lost :(

Anyway, thank you for your help so far !



---------------------------------------------------------------------
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