<CancellationPolicies> <CancellationPolicy amount="355.500" dateFrom="20140613" time="2359" /></CancellationPolicies>
What to add in the xslt? <pre><?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:dt="urn:schemas-microsoft-com:datatypes" version="1.0"> <xsl:output omit-xml-declaration="yes" indent="yes"/> <xsl:template match="/"> <xsl:apply-templates select="@*|node()"/> </xsl:template> <xsl:template match="ServiceHotel/AvailableRoom/HotelRoom/RoomType"> Política de cancelación: Tipo Hab. <xsl:value-of select="@characteristic"/> codigo:<xsl:value-of select="@code"/> </xsl:template> <xsl:template match="//CancellationPolicies/CancellationPolicy"> Si cancelas después de las <xsl:value-of select="@time"/> PM del <xsl:value-of select="@dateFrom"/> se aplicaran unos gastos de:<xsl:value-of select="@amount"/> <xsl:value-of select="//*/Currency/@code"/> </xsl:template> </xsl:stylesheet>
<xsl:template match="CancellationPolicy"> <xsl:value-of select="concat(substring(@dateFrom, 7, 2), '/', substring(@dateFrom, 5, 2), '/', substring(@dateFrom, 1, 4))"/> </xsl:template>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)