Subject: RE: date and time
From: "Roger L. Cauvin" <roger@xxxxxxxxxx>
Date: Thu, 12 Jul 2001 22:41:12 -0500
|
> 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)
|
|