Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xml mixed with html 1

Status
Not open for further replies.

mgriffith

MIS
Jul 3, 2001
177
US
i want to only use xml on a few things in my regular html pages...i know a little about how to create an entirely xml page and display all the elements in a fixed position. is there a way for example to mix in a <picture><title>pic1</title><src>pic1.gif</src></picture> with regular html in an xml file and then have it render the picture with a table or whatever in the same spot that it appears in the html code in the stylesheet. does it have something to do with the <xsl:template match=&quot;picture&quot;>?? thanks for any help and/or code snippets.
 
mgriffith,

You would need to use xslt elements to transform the xml in to html with the images. The usage of <xsl:apply-template> and <xsl:template> would be the start of it.Plus the choice and select tags would be useful as well.


Aaron
 
how would i go about doing this...would i have to create a template for the &quot;picture&quot; and then use the apply-template in the <xsl:template match=&quot;/&quot;>...and would it still write out all of my other html undistorted?? i've tried something like this and i could never get it to work...could you possibly give me a code snippet?? thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top