What's wrong with my XSL ?

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top