xsl-list
[Top] [All Lists]

Re: [xsl] ID Generation for XML Element

2010-10-29 06:06:38
Thanks Praveen.  This is also fine.

Praveen Chauhan wrote:
Hi Ramkumar,

U can also use this

<xsl:template match="sect">
      <section>
         <xsl:attribute name="id">
            <xsl:text>sec</xsl:text><xsl:number/>
         </xsl:attribute>
         <xsl:apply-templates/>
      </section>
   </xsl:template>

Thanks Praveen Chauhan


===========================================================
***Disclaimer***


This email, and any attachments ("this email"), is confidential. If you are not 
the addressee please tell the sender immediately, and destroy this email without using, 
sending or storing it. Any opinions, express or implied, in this email, are those of the 
sender, and are not necessarily approved by the company.  Except as expressly stated, 
this e-mail should not be regarded as an offer, solicitation, recommendation or agreement 
to buy or sell products or services, or to enter into any contract. E-mail transmissions 
are not secure and may suffer errors, viruses, delay, interception and amendment. The 
company does not accept liability for damage caused by any of the foregoing.

ALL INCOMING AND OUTGOING MAILS MAY BE MONITORED BY THE COMPANY.
============================================================

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--