Jump to content

XSLT Problems


nicefella

Recommended Posts

Posted

Hi, I am a beginner in xml.I need to include a picture in my xslt page which is linked to my xml page, so when the xml page is viewed, the picture shows.But I cant seem to get the syntax right.Can anyone help please?

Posted

Well show us your XML input format.Assuming you have e.g.

<root>  <images>	 <image>img1.gif</image>	 <image>img2.gif</image>  </images></root>

in your XML you can then transform to HTML with e.g.

<xsl:template match="images">  <ul>	<xsl:apply-templates/>  </ul></xsl:template> <xsl:template match="image">  <li>	<img src="{.}"/>  </li></xsl:template> 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...