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

RE: date and time

Subject: RE: date and time
From: "Roger L. Cauvin" <roger@xxxxxxxxxx>
Date: Thu, 12 Jul 2001 22:41:12 -0500
xsl fo system date
> is there a way to obtain recent system time and system date to
> put it in the result tree?

You could use a time resolver and XVRL (eXtensible Value Resolution
Language).

After running an XVRL processor, this excerpt

<hour>
  <xvrl:value>
    <xvrl:resolver-name>timeResolver</xvrl:resolver-name>
    <xvrl:method>getHour</xvrl:method>
  </xvrl:value>
</hour>
<minute>
  <xvrl:value>
    <xvrl:resolver-name>timeResolver</xvrl:resolver-name>
    <xvrl:method>getMinute</xvrl:method>
  </xvrl:value>
</minute>

would be converted to

<hour>10</hour>
<minute>35</minute>

The nice thing about XVRL is that you can extend it to resolve other kinds
of values.  http://www.xvrl.org offers two Java-based XVRL parsers, JAVR and
JResolver.  They include built-in resolvers for dynamically inserting the
current time, extracting data from relational databases, and "scraping" data
from web pages.  They both require a JAXP-compliant XML parser (such as
Xerces/Xalan).

---

Roger L. Cauvin
roger@xxxxxxxxxx



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


Current Thread
  • xsl-fo, (continued)
    • Anis h - Wed, 11 Jul 2001 09:32:11 -0400 (EDT)
    • Johannes Döbler - Wed, 11 Jul 2001 11:16:23 -0400 (EDT)
    • Michael Kay - Wed, 11 Jul 2001 12:08:33 -0400 (EDT)
    • Khan, Amir - Wed, 11 Jul 2001 12:28:23 -0400 (EDT)
    • Roger L. Cauvin - Thu, 12 Jul 2001 23:43:32 -0400 (EDT) <=
    • Rene de Vries - Fri, 13 Jul 2001 06:32:25 -0400 (EDT)

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.