xsl-list
[Top] [All Lists]

[xsl] Fwd: How to add a attribute of XML as a html element attribute using XSLT

2011-05-11 01:28:48
---------- Forwarded message ----------
From: Sanjaya Liyanage <sanjayacl(_at_)gmail(_dot_)com>
Date: Wed, May 11, 2011 at 6:25 AM
Subject: How to add a attribute of XML as a html element attribute using XSLT
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com


Hi all,

       How can I use the XSLT to convert myXML.xml to target html?I
don't know how to apply the xml property "size" as the value of
attribute size in input element.Any help is vital.

    myXML.xml
 <ui>
          <textBox size="50">
          </class>
 </ui>

   Target html

<html>
   <body>
              <input name="lastname" type="text" id="lastname"
value="" size="50" />
   </body>
</html>

Thank you
Sanjaya Liyanage

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>