lizhiye5 Posted October 11, 2005 Share Posted October 11, 2005 how can i transmit picture using xml ? Link to comment Share on other sites More sharing options...
Nick Posted October 17, 2005 Share Posted October 17, 2005 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 More sharing options...
lizhiye5 Posted October 21, 2005 Author Share Posted October 21, 2005 thanks,I have accomplished it.thank you again! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now