hi again, see inline... > -----Ursprüngliche Nachricht----- > Von: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Auftrag von Amelie Cordier > Gesendet: Sonntag, 2. März 2003 17:07 > An: [EMAIL PROTECTED] > Betreff: Re: AW: Generating dynamic attributes in xsp > > <snipped-nice-name-et-al/>
> I can't achieve to make this work. > > Here is what I've done (I've changed some names because it was quite > ambiguous) > > > In my xsp : > > <mytag:user> > <year><xsp-request:get-parameter name="paramyear"/></year> > </mytag:user> if you used this then the template below doesnt't match because your predicate says there must be an _attribute_ year. either leave the predicate out or also check for the corresponding element; <xsl:template match="mytag:[EMAIL PROTECTED] or year]"> ... > > And in my xsl: > > <xsl:include href="logicsheet-util.xsl"/> > <xsl:param name="namespace-uri">http://mynamspace/mytag</xsl:param> > > > <xsl:template match="mytag:[EMAIL PROTECTED]"> > <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 "[EMAIL PROTECTED]" 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. > Thanks > > Amelie ingen orsak. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]