i am trying to convert XML to a scaled image which is also a hyper link to itself (in full size)
here is some example XML that i need to translate with XSLT
CODE
<entry date="30th August 2004" title="Ohhh yes !!!">
<small_photo url="incase.jpg"/>
<small_photo url="fstleaf1.jpg"/>
<small_photo url="fstleaf2.jpg"/>
<small_photo url="fstleaf3.jpg"/>
<small_photo url="fstleaf4.jpg"/>
<small_photo url="pants.jpg"/>
<text>
Yep! after only a week ! The first piccy is of the plants inside the computer case.
The cardboard thing at the top covered in duct tape is part of a domino's pizza box,
we cut holes in it, and used to to support the light bulbs.
</text>
<text>
The last photo shpws the minni green house fully switched on, in its hiding place.
The other computers in the foor drown out the noise of the quiet fans. PERFECTLY hidden !
</text>
</entry>
<small_photo url="incase.jpg"/>
<small_photo url="fstleaf1.jpg"/>
<small_photo url="fstleaf2.jpg"/>
<small_photo url="fstleaf3.jpg"/>
<small_photo url="fstleaf4.jpg"/>
<small_photo url="pants.jpg"/>
<text>
Yep! after only a week ! The first piccy is of the plants inside the computer case.
The cardboard thing at the top covered in duct tape is part of a domino's pizza box,
we cut holes in it, and used to to support the light bulbs.
</text>
<text>
The last photo shpws the minni green house fully switched on, in its hiding place.
The other computers in the foor drown out the noise of the quiet fans. PERFECTLY hidden !
</text>
</entry>
and here is the XSL template i am trying to do the converting with
CODE
<xsl:template match="small_photo">
<a><xsl:attribute name="href"><xsl:value-of match="@url"/></xsl:attribute>
<img>
<xsl:attribute name="src"><xsl:value-of match="@url"/></xsl:attribute>
<xsl:attribute name="width">20%</xsl:attribute>
</img>
</a>
</xsl:template>
<a><xsl:attribute name="href"><xsl:value-of match="@url"/></xsl:attribute>
<img>
<xsl:attribute name="src"><xsl:value-of match="@url"/></xsl:attribute>
<xsl:attribute name="width">20%</xsl:attribute>
</img>
</a>
</xsl:template>
in other words, i am trying to generate the following HTML
CODE
<a href="incse.jpg>
<img src="incase.jpg" width="20%"/>
</a>
<img src="incase.jpg" width="20%"/>
</a>
When i try to open the XMS document in firefox, i get the following error "Error loading stylesheet: Parsing an XSLT stylesheet failed."
the document is rendered perfectly (without pictures when i remove the small_photo template.
any ideas anyone ??? thankyou.

