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

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top