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

Re: script function to format the

Subject: Re: script function to format the
From: Jeni Tennison <mail@xxxxxxxxxxxxxxxx>
Date: Sat, 4 Nov 2000 16:36:03 +0000
function of format
Erick,

> I'm trying to get a script function to format the
> value-of select tag, but I haven't been able to find
> anything on the net or elsewhere that explains what
> I'm trying to do.

Assuming you're using MSXML, the resource that you're after is the
MSXML SDK, which contains documentation of the Microsoft extension
element msxsl:script.  (There is no xsl:eval or xsl:script in
XSLT 1.0.)

Roughly, what you want is:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:msxsl="urn:schemas-microsoft-com:xslt"
                xmlns:user="ericklind1@xxxxxxxxx"
                version="1.0">

  <msxsl:script language="VBScript" implements-prefix="user">
     function formatDate1(idate)
       formatDate1 = formatDateTime(idate, vbshortdate)
     end function
  </msxsl:script>
  
  <xsl:template match="invoice">
    <xsl:value-of select="user:formatDate1(invoicedate)"/>
  </xsl:template>

</xsl:stylesheet>

I hope that helps,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/



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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.