W
WebSLS
What am I doing wrong ?
Here is my XML:
<?xml version="1.0" standalone="yes"?>
<Specials xmlns="http://tempuri.org/Specials.xsd">
<Trip>
<ID>0</ID>
<Lieux>Canada</Lieux>
<Hotel>Clarendon</Hotel>
<Depart>1er janvier</Depart>
<Duree>1 semaine</Duree>
<Prix>450$</Prix>
<ToutCompris>false</ToutCompris>
<Rating>4.5</Rating>
<Description>Hotel dans le vieux Québec</Description>
</Trip>
</Specials>
Here is my XSL
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:for-each select="Specials/Trip">
<p><xsl:value-of select="Lieux"/></p>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
Nothing is output
Here is my XML:
<?xml version="1.0" standalone="yes"?>
<Specials xmlns="http://tempuri.org/Specials.xsd">
<Trip>
<ID>0</ID>
<Lieux>Canada</Lieux>
<Hotel>Clarendon</Hotel>
<Depart>1er janvier</Depart>
<Duree>1 semaine</Duree>
<Prix>450$</Prix>
<ToutCompris>false</ToutCompris>
<Rating>4.5</Rating>
<Description>Hotel dans le vieux Québec</Description>
</Trip>
</Specials>
Here is my XSL
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:for-each select="Specials/Trip">
<p><xsl:value-of select="Lieux"/></p>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
Nothing is output