|
Subject: Re: [xsl] Parsing day out of date format 10/12/00 From: chafar@xxxxxxxxxxxx Date: Wed, 12 Feb 2003 22:15:04 +0100 |
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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Parsing day out of date f, Ritu | Thread | Re: [xsl] Parsing day out of date f, David Carlisle |
| Re: Re: [xsl] Parsing day out of da, James Hunt | Date | Re: [xsl] ClassCastException - main, J.Pietschmann |
| Month |