Subject:XSLT stylesheet to extract transmission times from the log.xml Author:xmlxmlxml xmlxmlxml Date:06 Jun 2007 02:03 AM Originally Posted: 05 Jun 2007 01:19 PM
I need to create an XSLT stylesheet to extract all transmission times from the log.xml file given below. The transmission times may be calculated from the timestamp and txstart attributes. any post-processing of the data is not to be done, so the XSLT stylesheet
needs to handle the calculations with XSL and XPath functions.
The same as above has to be done for the reception times.
Does anyone have any idea how to go about this?Pleezzzzzz.
log.dtd
<!ELEMENT entry EMPTY >
<!ELEMENT log (entry*) >
<!ATTLIST entry timestamp CDATA #REQUIRED >
<!ATTLIST entry type ( receive | transmit |
connect | disconnect |
unknown) #REQUIRED
>
<!-- The txstart element only exists if type == transmit
The attribute implies the starting time of the transmission
that ended with this event. -->
<!ATTLIST entry txstart CDATA #IMPLIED>
<!-- The rxstart element only exists if type == receive
The attribute implies the starting time of the transmission
that ended with this event. -->
<!ATTLIST entry rxstart CDATA #IMPLIED>
<!-- The nconns element exist if type == connect or type == disconnect
The attributes implies the number of connections currently upheld -->
<!ATTLIST entry nconns CDATA #IMPLIED>
Subject:XSLT stylesheet to extract transmission times from the log.xml Author:xmlxmlxml xmlxmlxml Date:07 Jun 2007 11:32 AM Originally Posted: 07 Jun 2007 11:11 AM
Elias! Thank you so for your quick response.Could you possibly explain a bit further like why isn't the data there when we have the dtd to describe the xml's contents.Can't it be interspersed? Thanks.