cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Annik Schoenmann" <an...@idbsoft.ch>
Subject Re: problem with the xslt transformation
Date Thu, 14 Dec 2000 08:16:04 GMT
Hi
I try you syntax and this one

      <xsl:variable name="idtitre"
select="concat('titre',(((../@id)*2)+1))"/>
      <textarea name="{$idtitre}" cols="30" rows="4">insérer votre titre
      <xsl:apply-templates select="PetitParagraphe[@id=1]/titre"/>
      </textarea>

but it still don't work!! like if cocoon couldn't read the number any idea?
Regards Annik Schoenmann

----- Original Message -----
From: "Piroumian, Konstantin" <KPiroumian@flagship.ru>
To: <cocoon-users@xml.apache.org>
Sent: Wednesday, December 13, 2000 5:48 PM
Subject: Re: problem with the xslt transformation


> Try to change this line like this:
> <textarea name="titre{(((../@id)*2)+1)}" cols="30" rows="2">Insérer votre
> into:
> <textarea cols="30" rows="2">
>     <xsl:attribute name="name" select="concat('titre',
((({../@id})*2)+1))"
> />
>     Insérer votre
> ...
>
> Regards,
>     Konstantin Piroumian
>
> ----- Original Message -----
> From: "Annik Schoenmann" <annik@idbsoft.ch>
> To: <cocoon-users@xml.apache.org>
> Sent: 13 ??????? 2000 ?., ????? 19:23
> Subject: problem with the xslt transformation
>
>
> Hi
> I have a problem with the xslt transformation of Cocoon (I use jetspeed)
> I try to generate a name for my different paragraph texte1, texte2,
text3...
> Actually the result is texteNaN?
>
> my XML:
> ....
> <LigneParagraphe id="1">
>         <PetitParagraphe id="1">
>            <titre>titre1</titre>
>            <text>text of titre1</text>
>       </PetitParagraphe>
>         <PetitParagraphe id="2">
>            <titre>titre1</titre>
>            <text>text of titre1</text>
>       </PetitParagraphe>
> </LigneParagraphe>
> ....
>
>
> my XSL:
> <textarea name="titre{(((../@id)*2)+1)}" cols="30" rows="2">Insérer votre
> titre
>          <xsl:apply-templates select="PetitParagraphe[@id=1]/titre"/>
> </textarea>
>
>
> the result name:
> name="texteNaN"
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
>
> ---------------------------------------------------------------------
> 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