ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anderson, Kajsa (TLR Corp)" <>
Subject RE: XML Properties with XSL
Date Thu, 27 May 2004 17:09:28 GMT
You need to use something like:
<xsl:template match="//property[@name='TODAY']">
  <xsl:value-of select="@value"/>

-----Original Message-----
From: Hartman, Shane []
Sent: Thursday, May 27, 2004 11:56 AM
To: 'Ant Users List'
Subject: XML Properties with XSL

Does anyone know how to access properties attributes in a generated XML

I am running JUnit with Ant to produce xml reports and then running it
through the JUnitReport task. Here is an except of the xml produced.. 

<?xml version="1.0" encoding="UTF-8" ?>
<testsuite errors="0" failures="0"
tests="30" time="2.515">
    <property name="" value="junit"></property>
    <property name="TODAY" value="27-May-2004"></property>
    <property name="junitreports"
  <testcase name="testIsDelayedCaseNotificationRequired1"
  <testcase name="testIsDelayedCaseNotificationRequired2"

I wanted to change the style sheet to include the time of run so everyone
knew how current the report was. I was going to do this by accessing the
"TODAY" property located above. I have tried stuff like <xsl:value-of
select="testsuite/properties/@TODAY"/> but this hasn't worked. Any help in
pointing out what I am doing wrong would be appreciated. Thanks
This email and any attachments constitute non-public information for use
only by intended recipient(s) and may contain confidential information.  If
you are not an intended recipient, please notify our Information Security
Officer immediately at (941) 906-5844 and permanently delete the original of
this email and any attachments, as well as any copies or printouts thereof.
The unauthorized use, dissemination, distribution or reproduction of this
email and any attachments is prohibited and may be unlawful.

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message