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

(Block) Scripting code not working in XSL

Subject: (Block) Scripting code not working in XSL
From: "Kevin Doran" <DORANK@xxxxxxxxx>
Date: Wed, 06 Apr 2005 09:51:16 -0300
scripting code
Hi All,
I've got some scripting code that modifies a date in my transformation =
from xml to html. The code does not throw an error but it does not display =
the date. I just get a blank page and there is no html source code. Here =
is the code I'm using for the script...

<?xml version=3D"1.0"?>
<xsl:stylesheet version=3D"1.0" xmlns:xsl=3D"http://www.w3.org/1999/XSL/Tra=
nsform" xmlns:msxml=3D"urn:schemas-microsoft-com:xslt" xmlns:vbdate=3D"urn:=
schemas-xmlpitstop-com:vbdate">
<xsl:output method=3D"html" media-type=3D"text/html" encoding=3D"UTF-8" =
/>=20

<msxml:script language=3D"VBScript" implements-prefix=3D"vbdate">
  function VBDateAdd(strDate1)=20
  VBDateAdd =3D DateAdd("h", -4, strDate1)=20
  end function=20
  </msxml:script>=20

<table width=3D'171' border=3D'0' cellspacing=3D'0' cellpadding=3D'0' =
bgcolor=3D'#CCCCCC'>
<tr align=3D'center' valign=3D'top'>
          <td colspan=3D'2'>
          <xsl:variable name=3D"date" select=3D"rpuData/essIdent/@TimeStamp=
" />

          <xsl:value-of select=3D"vbdate:VBDateAdd($date)" /> GMT

</td>
</tr>
</table>
</xsl:template>
</xsl:stylesheet>
This table is used as an asp include file in a larger web page.=20
Is there something wrong with the code? Any one have a suggestion on how =
to modify the xml date by 4 hours?
Thanks

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.