A
AwanJohnie
I have an xml document as shown (not mine but extracted from an
application):
<category defid="468808" name="Global Information Attributes"
versionid="6">
<attributeset attid="1" name="Global Information Attributes">
<attribute attid="3" name="Issue_Date"
type="-7">2003-09-30T00:00:00</attribute>
<attribute attid="4" name="Review_Date"
type="-7">2006-10-30T00:00:00</attribute>
</attributeset>
</category>
I need to write an XSL to extract the values of 10 the Issue_Date (In
this case = 2003-09-30T00:00:00) and Review_Date (In this case =
2006-10-30T00:00:00)
I wrote this in my xsl:
<xsl:value-of select="category/attributeset/attribute/@attid=4"/>
It did not give me the desired result. It gave me a value = true.
In addition how can I trim the date to show only "2003-09-30" for
example.
Thanks
application):
<category defid="468808" name="Global Information Attributes"
versionid="6">
<attributeset attid="1" name="Global Information Attributes">
<attribute attid="3" name="Issue_Date"
type="-7">2003-09-30T00:00:00</attribute>
<attribute attid="4" name="Review_Date"
type="-7">2006-10-30T00:00:00</attribute>
</attributeset>
</category>
I need to write an XSL to extract the values of 10 the Issue_Date (In
this case = 2003-09-30T00:00:00) and Review_Date (In this case =
2006-10-30T00:00:00)
I wrote this in my xsl:
<xsl:value-of select="category/attributeset/attribute/@attid=4"/>
It did not give me the desired result. It gave me a value = true.
In addition how can I trim the date to show only "2003-09-30" for
example.
Thanks