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: [XSLTalk] Not able to work up with <DIV> tag


> I think you can do the following :
> 
> <xsl:for-each select="toppFolderOut">
>   <xsl:element name="div">
>     <xsl:attribute name="CLASS">topFolderOut</xsl:attribute>
>     <xsl:attribute name="ID">Metrics</xsl:attribute>
>     <xsl:attribute name="topfolid"><xsl:value-of
> select="@id"/></xsl:attribute>
>   </xsl:element>
> </xsl:for-each>
> 
> Is that the right way to do it ??

It is one right way to do it, but I'm lazy:

<xsl:for-each select="toppFolderOut">
  <div CLASS="topFolderOut" ID="Metrics" topfolid="{@id}"/>
</xsl:for-each>

Mike Kay

 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]