|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] How to Substitute HTML template with values?
Hi, I'm looking for a method to make the following by XSLT: Input: XHTML template doc, XML value mapping doc, XSLT doc Output: XHTML doc, based on XHTML template, filled with value from the XML file. In other words, I want to make copy with substitutions. The main point here is that the XHTML is an external template, instead of being embedded into the XSLT doc! (that helps me to design the XHTML without touching the XSLT). for example: XHTML Template: <html> <head><title>My Template</title></head> <body> <br />Name <input type="text" value="@@@NAME@@@" size="15"/> <br />Address <input type="text" value="@@@ADDR@@@" size="15"/> </body> </html> XML Doc: <mapping> <@@@NAME@@@>My Name</@@@NAME@@@> <@@@ADDR@@@>My Address</@@@NAME@@@> </mapping> XHTML Output: <html> <head><title>My Template</title></head> <body> <br />Name <input type="text" value="My Name" size="15"/> <br />Address <input type="text" value="My Address" size="15"/> </body> </html> What is the XSLT for doing such? This is a very simple example, of course. Next step is template for tables... Thanks, -- Amir XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








