|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Assign the xsl:copy-of output to the value attrib
Hi, snip > Expected xslt output: > <html xmlns:xhtml="http://www.w3.org/1999/xhtml"> > <body> > <script language="Javascript"> > function msg(val) > { > alert(val); > } > </script> > <form name="f" onsubmit="return false;"> > <div> > NAME: Bugs < Bunny<br> > DOB: 03/21/1970<br> > AGE: 31<br> > ADDRESS: 4895 Wabbit Hole Road<br> > PHONE: 865-111-1111<br> > <input name="lastEvent" type="checkbox" value=" > <programmer> You want to write elements into an attribute value. Why? Why not escaped markup? This is not well-formed XML and cannot be achived with vanilla XSLT. Either you output <input name="lastEvent" type="checkbox" value=" <programmer> ... by using a XML serializer written in XSLT (e.g. <http://www.xmlportfolio.com/xml-to-string/>), or if you absolutely need <input name="lastEvent" type="checkbox" value=" <programmer> ... Then use the above method in conjunction with a result tree serializer that doesn't escape the output for that particular element. IIRC, Saxon also has an extension to use DOE in xsl:attribute. Cheers, Jarno - SITD: Venom
|
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
|






