P
petermichaux
Hi,
I have an XML document that I am transforming with XSLT. The XML is
like this
<departments>
<department>
<name>Dept1</name>
<uri>http://www.domain.com/index.php?dept=1</uri>
</department>
<department>
<name>Dept2</name>
<uri>http://www.domain.com/index.php?dept=2</uri>
</department>
</departments>
and in the XSLT department template I am trying to create unordered
list elements of links to these departments. But the following does not
work
<xsl:template match="department">
<li><a href="<xsl:value-of select="uri"/>"><xsl:value-of
select="name"/></a></li>
</xsl:template>
I get an error
TEXT: /Users/peter/store/xsl/departments.xsl:5: parser error :
Unescaped '<' not allowed in attributes values
How do I write this department template properly?
Thanks!
Peter
I have an XML document that I am transforming with XSLT. The XML is
like this
<departments>
<department>
<name>Dept1</name>
<uri>http://www.domain.com/index.php?dept=1</uri>
</department>
<department>
<name>Dept2</name>
<uri>http://www.domain.com/index.php?dept=2</uri>
</department>
</departments>
and in the XSLT department template I am trying to create unordered
list elements of links to these departments. But the following does not
work
<xsl:template match="department">
<li><a href="<xsl:value-of select="uri"/>"><xsl:value-of
select="name"/></a></li>
</xsl:template>
I get an error
TEXT: /Users/peter/store/xsl/departments.xsl:5: parser error :
Unescaped '<' not allowed in attributes values
How do I write this department template properly?
Thanks!
Peter