hi all,
i'm creating my first xml
here is my code :
test1.xml:
<?xml version="1.0"?>
<?xml-stylesheet href="display.xsl" type="text/xsl"?>
<BOOK>
<CHAP>
<TITLE>differents styles</TITLE>
<SUBTITLE>voici une possibilite de sous titre</SUBTITLE>
<TEXT>ici texte</TEXT>
</CHAP>
</BOOK>
display.xsl
<xsl:stylesheet xmlns:xsl="<xsl:template>
<xsl:for-each select="BOOK/CHAP">
<H1>
<xsl:value-of select="TITLE"/>
</H1>
<u>
<xsl:value-of select="SUBTITLE"/>
</u>
<H2>
<xsl:value-of select="TEXT"/>
</H2>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
when i launch test1.xml under my browser it gives me a blank page
what is missing ?
Best regards X-),
Elise
i'm creating my first xml
here is my code :
test1.xml:
<?xml version="1.0"?>
<?xml-stylesheet href="display.xsl" type="text/xsl"?>
<BOOK>
<CHAP>
<TITLE>differents styles</TITLE>
<SUBTITLE>voici une possibilite de sous titre</SUBTITLE>
<TEXT>ici texte</TEXT>
</CHAP>
</BOOK>
display.xsl
<xsl:stylesheet xmlns:xsl="<xsl:template>
<xsl:for-each select="BOOK/CHAP">
<H1>
<xsl:value-of select="TITLE"/>
</H1>
<u>
<xsl:value-of select="SUBTITLE"/>
</u>
<H2>
<xsl:value-of select="TEXT"/>
</H2>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
when i launch test1.xml under my browser it gives me a blank page
what is missing ?
Best regards X-),
Elise