I have xml code with 2 elements one for timeServed and the other for dateServed. When timeServed element is empty, my xslt is showing <ServiceTime>00:00:00-05:00</ServiceTime>. I want this <ServiceTime></ServiceTime> displayed instead. I think I can add an If statement to the xslt code to check if the timeserved is blank and if it is do not enter the 00:00:00-05:00. How do I do this?
Current output which is wrong
My XML code
My XSLT code. I have concatenated time dateserved and timeserved together using a function mscef:formatTime
<xsl:value-of select="mscef:formatTime(concat(@dateServed,' ',@timeServed))"/>
Here should go questions about transforming XML with XSLT and FOP.
2 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 3 guests