Search
Thursday, August 28, 2008 ..:: Home ::.. Register  Login
 Account Login Minimize


Register
Forgot Password ?


 Print   
 Sponsorship Minimize

 Print   
 UsersOnline Minimize
Membership Membership:
Latest New User Latest: justapcguy
New Today New Today: 0
New Yesterday New Yesterday: 0
User Count Overall: 84

People Online People Online:
Visitors Visitors: 13
Members Members: 0
Total Total: 13

Online Now Online Now:

 Print   
 Milwaukee IT Networking Meeting - September 15th, 2008 - Topic TBD Minimize
Hover here, then click toolbar to edit content

 Print   
 Milwaukee IT Networking Meeting - Rescheduled to October, 2008 - Expert Level Excel Minimize
Taylor Consulting, LLC will be sponsoring the meeting and providing Free Pizza and Soda.  Space is limited so please click here to RSVP to the Milwaukee user group meeting.

The meeting will be about expert level Microsoft Excel.  Please invite your friends, coworkers, and linkedIn contacts.

Please check back shortly for details about the speaker.  If you have already signed up for a free account on the WASM website you will receive an email when we have more details.

 Print   
 Newsletter Minimize
Login if you would like to comment, registration is free. If you would like to post articles please contact us with the "contact us" button at the top of the site for more information.
Apr 11

Written by: Joel Taylor
4/11/2008 1:51 PM

The XSLT Standart Library can be found at http://xsltsl.sourceforge.net/.  I recently used version 1.2.1 for an airport flight information data system to format dates and times flights were arriving.  The code was simple to use and well documented.  It is distributed as a zip file and in order to use it you just need to include a directory with the library in it.  In order to keep it simple I named the directory with the version.

To include the functions you would like in your xsl file you need to include an import function.  The statements below show an import from the xsltsl-1.2.1 folder which was at the same level as the xsl.  The date-time.xsl includes the functions.

<xsl:import href="xsltsl-1.2.1/date-time.xsl"/>


To call the format-date-time function you would add code like this to the xsl.  The @actual is the field from your xml data that you are going to format.

<xsl:call-template name="dt:format-date-time">
        <xsl:with-param name="xsd-date-time" select="@actual"/>
        <xsl:with-param name="format" select="'%i:%M %Q'"/>
</xsl:call-template>

Copyright ©2008 Joel Taylor

Tags:

  
Copyright 2007 by WASM   Terms Of Use  Privacy Statement