Kan ikke transformere
Jeg har denne XML-fil:<?xml version="1.0" encoding="ISO-8859-1"?><?xml-stylesheet type="text/xsl" href="list_news_normal.xsl"?><pages><page><id>60</id><title>Overskrift</title><datechange></datechange><datecreate></datecreate></page><page><id>59</id><title>dfgdfggggggggggggggggg</title><datechange></datechange><datecreate></datecreate></page><page><id>58</id><title>-</title><datechange></datechange><datecreate></datecreate></page></pages>
Og denne XSL-fil:
<?xml version="1.0"?>
<HTML xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:for-each select="pages/page/title">
<xsl:value-of select="title"/>
<p class="textbox"><a><xsl:attribute name="href">default.asp?pageid=<xsl:value-of select="id"/></xsl:attribute>
<xsl:value-of select="title"/></a>
</p>
</xsl:for-each>
</HTML>
Den ser ud til at loope igennem, men eks. <xsl:value-of select="title"/> giver ingen ting.