A
adam bob
Hello, i'm currently working on some xslt that formats some xml gained
from an infopath form. The problem i have is the date. Basically its
generatng the date in this format; 2007-09-04 00:00:00. Ideally i'd
like the date to be in the following format; 12-aug-2007, or
14/07/2007 etc.
I've tried applying numerous templates etc gained from the internet,
but none of them seem to work, or contain errors so my xslt doesnt
parse.
the code;
____________________________________________________________________________________________
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/
Transform" xmlns:my="http://schemas.microsoft.com/office/infopath/2003/
myXSD/2007-01-25T08:56:14">
<xslutput method="html"/>
<xsl:template match="/">
<html>
<!-- CSS Declaration-->
<style type="test/css">
#style1
{
}
</style>
<body>
<font size="4">
IT project test
</font>
<br></br>
<br></br>
<table style="width: 100%">
<tr>
<td>
<!-- Gets the description from the saved
form -->
<font size="2">
<xsl:value-of select="my:myFields/
myroject_name"/>
<br></br>
<br></br>
<xsl:value-of select="my:myFields/
myriority"/>
<br></br>
<br></br>
<xsl:value-of select="my:myFields/
myroject_sponsor"/>
<br></br>
<br></br>
<xsl:value-of select="my:myFields/
myroject_owner"/>
<br></br>
<br></br>
<xsl:value-of select="my:myFields/
myroject_category"/>
<br></br>
<br></br>
<xsl:value-of select="my:myFields/
my:start_date"/>
<br></br>
<br></br>
<xsl:value-of select="my:myFields/
my:est_finish"/>
</font>
</td>
</tr>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
____________________________________________________________________________________________
Please help!!
Many thanks
Adam
from an infopath form. The problem i have is the date. Basically its
generatng the date in this format; 2007-09-04 00:00:00. Ideally i'd
like the date to be in the following format; 12-aug-2007, or
14/07/2007 etc.
I've tried applying numerous templates etc gained from the internet,
but none of them seem to work, or contain errors so my xslt doesnt
parse.
the code;
____________________________________________________________________________________________
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/
Transform" xmlns:my="http://schemas.microsoft.com/office/infopath/2003/
myXSD/2007-01-25T08:56:14">
<xslutput method="html"/>
<xsl:template match="/">
<html>
<!-- CSS Declaration-->
<style type="test/css">
#style1
{
}
</style>
<body>
<font size="4">
IT project test
</font>
<br></br>
<br></br>
<table style="width: 100%">
<tr>
<td>
<!-- Gets the description from the saved
form -->
<font size="2">
<xsl:value-of select="my:myFields/
myroject_name"/>
<br></br>
<br></br>
<xsl:value-of select="my:myFields/
myriority"/>
<br></br>
<br></br>
<xsl:value-of select="my:myFields/
myroject_sponsor"/>
<br></br>
<br></br>
<xsl:value-of select="my:myFields/
myroject_owner"/>
<br></br>
<br></br>
<xsl:value-of select="my:myFields/
myroject_category"/>
<br></br>
<br></br>
<xsl:value-of select="my:myFields/
my:start_date"/>
<br></br>
<br></br>
<xsl:value-of select="my:myFields/
my:est_finish"/>
</font>
</td>
</tr>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
____________________________________________________________________________________________
Please help!!
Many thanks
Adam