This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: testing an attribut


If "Folge" is an attribute of "Fliesstext.Body" tag, then you can test for
the attribute
like this

<xsl:when test="@Folge = 1">
...


- Prasad
> -----Original Message-----
> From:	Franz Figl [SMTP:frafi@augusta.de]
> Sent:	Monday, March 27, 2000 3:17 PM
> To:	xsl-list@mulberrytech.com
> Subject:	testing an attribut
> 
> Could anybody give me the proper syntax for testing an attribute? Thanks.
> The following example will not work with my renderer, what is wrong?
> 
> <xsl:template match="Fliesstext.Body">
> <xsl:choose>
> <xsl:when test='{attribute(Folge)} = 1'>
> <TD font-family="Times" font-size="9pt" text-align="justify"
> width="{attribute(Einzug)}" >
>  <xsl:apply-templates/>
> </TD>
> </xsl:when>
> <xsl:otherwise>
> <TD font-family="Times" font-size="9pt" text-align="justify" width="*" >
>  <xsl:apply-templates/>
>  </TD>
> </xsl:otherwise>
> </xsl:choose>
> </xsl:template>
> 
> 
> Franz
> 
> 
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]