That's easy. You can't. You have to pass the date to the XSLT as a parameter
from the command line, or from the calling procedural code, depending on how
you are invoking the transform.
--
Charles Knell
cknell(_at_)onebox(_dot_)com - email
-----Original Message-----
From: "Matt Trimmer" <matt(_dot_)trimmer(_at_)ivantage(_dot_)co(_dot_)uk>
Sent: Wed, 30 Jul 2003 23:49:46 +0100
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Subject: RE: [xsl] Xml to xml conversion of angle backet
Thanks all - this worked a treat!
<URL>
<xsl:attribute name="path">
<xsl:value-of select="URL"/>ABC<xsl:value-of select="PARAM"/>
</xsl:attribute>
</URL>
Anyone know how to retrive the system date and time from Windows in an XSL?
-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com] On Behalf Of
Vetle Roeim
Sent: 30 July 2003 10:52
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] Xml to xml conversion of angle backet
Matt Trimmer wrote:
Hi All,
I am a new user of XSLT. I am trying to convert one XML document to
other XML formats and all is going well except for one required XML
format.
The end XML document I am trying to create requires the following
element to be created:
<URL path="XYX">
I want to populate the XYX with some selections from the source
document, so I use :
<URL path="<xsl:value-of select="URL"/>ABC<xsl:value-of
select="PARAM"/>">
Is this what you want?
<URL>
<xsl:attribute name="path">
<xsl:value-of select="URL"/>ABC<xsl:value-of select="PARAM"/>
</xsl:attribute>
</URL>
.. or do you want the path attribute to actually contain XSL elements?
vr
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list