[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Date-Format: How can i use this??

Subject: Re: Date-Format: How can i use this??
From: Joerg.Heinicke@xxxxxx
Date: Wed, 30 Jan 2002 12:06:36 +0100 (MET)
xsl datum format
Hi Asim,

you can use the substring()-function:

<xsl:template match="OBX">
    <xsl:text>Datum:    </xsl:text>
    <xsl:value-of select="substring(@ObservationDT,9,2)"/>
    <xsl:value-of select="substring(@ObservationDT,6,2)"/>
    <xsl:value-of select="substring(@ObservationDT,1,2)"/>
    <xsl:text>&#xa;Uhrzeit:    </xsl:text>
    <xsl:value-of select="substring(@ObservationDT,12,5)"/>

Maybe you have to change the exact numbers, but that's the way.

Your second question: <xsl:value-of select="translate(@Unit_ID, 'U', 'L')"/>



> Hi,
> i have this XML:
> <tdPAVSelection>
> 	<OBX ObservationDT="2001-11-04T08:00:00" Observation_ID="2157-6"
> ValueType_ID="NM" Value="105" Unit_ID="U/L" AbnormFlag_ID="H"
> ResultState_ID="F" FootnoteID="29"/>
> </tdPAVSelection>
> But i need this Result for ObservationDT:
> Datum	:	04.11.2001
> Uhrzeit	:	08:00
> My second question:
> I have in Tag Unit_ID = "U/L". But i want Replace U with ?. So i have
> ?/L instead of U/L. 
> Thanks for Help for a newbie
> Asim

GMX - Die Kommunikationsplattform im Internet.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.