|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Parsing day out of date format 10/12/00
Hello.
If you are sure all your stuff is there, this could do it:
<xsl:template match="BirthDate">
<BirthDate>
<BirthMonth><xsl:value-of select="substring-before(.,'/')"/></BirthMonth>
<BirthDay><xsl:value-of select="substring-before(substring-after(.,'/'),'/')"/></BirthDay>
<BirthYear><xsl:value-of select="substring-after(substring-after(.,'/'),'/')"/></BirthYear>
</BirthDate>
</xsl:template>
(could include any mistake, hope not)
> <BirthDate>
> <BirthMonth>10</BirthMonth>
> <BirthDay>12</BirthDay>
> <BirthYear>00</BirthYear>
> </BirthDate>
regards
--
José Esteban
Granada - Spain
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








