2017-09-12 2 views

Répondre

1

XPath 2.0 a une fonction pour cela:

XSLT 2.0

<xsl:stylesheet version="2.0" 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/> 

<xsl:template match="/chatTranscript"> 
    <chat> 
     <time> 
      <xsl:value-of select="adjust-dateTime-to-timezone(@startAt,())"/> 
     </time> 
    </chat> 
</xsl:template> 

</xsl:stylesheet>