Jump to content

help


lizhiye5
 Share

Recommended Posts

If you had something like this:<picture location="http://example.com/imagelocation.png" description="An image" />Your XSL stylesheet might look something like this:

<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" ><xsl:template match="/"><html><head><title>A picture</title></head><body><xsl:apply-templates /></body></html></xsl:template><xsl:template match="picture"><img src="{@location}" alt="{@description}" /></xsl:template>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...