I see. Thanks a lot.The source XML file goes like this. <?xml version="1.0" encoding="UTF-8"?> <form id="FormFormEditor" name="FormFormEditor"> <form-define printsize="A4" layout="vartical" backcolor="white"></form-define> <components count="3"> <component id="Image_1" type="Image" resource-id=""> <common name="Image_1" top="260" left="20" backcolor="LightGray" font="Arial" fontsize="10.5" width="101" height="49" /> <variable name="src" value="http://msdn.microsoft.com/library/toolbar/3.0/images/banners/msdn_masthead_ltr.gif" /> <variable name="border" value="True" /> <variable name="borderwidth" value="0" /> <variable name="bordercolor" value="Black" /> </component> <component id="ListBox_1" type="ListBox"> <common name="ListBox_1" top="140" left="90" backcolor="LightGray" font="Arial" fontsize="10.5" width="121" height="77" /> <variable name="selectedindex" value="0" /> <variable name="listdata" value="" /> <variable name="border" value="True" /> <variable name="borderwidth" value="0" /> <variable name="bordercolor" value="Black" /> </component> <component id="TextBox_1" type="TextBox"> <common name="TextBox_1" top="70" left="40" backcolor="LightGray" font="Arial" fontsize="10.5" width="101" height="20" /> <variable name="text" value="" /> <variable name="maxlength" value="100" /> <variable name="border" value="True" /> <variable name="borderwidth" value="0" /> <variable name="bordercolor" value="Black" /> <variable name="text-align" value="Left" /> <variable name="ime" value="True" /> </component> </components> <resources> <resource id="" name=""> binary-imagedata </resource> </resources> </form> The relationship goes like this. The <form> node in XML corresponds to the <form> tag in aspx file. And the <component> node in XML will be transformed to control tag according to its type[/] attribute. The attributes of <common> node and the <variable> node list describe the attributes of control tag in aspx. The <resources> node is an accessory of image control. I have tried the way you told me by inserting [i]<%@ Page Language="vb" %> directly in XSLT. But Microsoft Visual Studio .Net threw an exception saying XSLT cannot be started with %. Then I tried to use DTD to define an entity whose content is just <%@ Page Language="vb" %>. But it also threw an exception. Now, can you help me??
It's so unlucky that it still transform < into <. I use MS Visual Studio .Net 2003. My OS is Win2k Proffessional version with SP3. What shall I do??
It is no measure of health to be well adjusted to a profoundly sick society. -Krishnamurti Tiny ad:
Gift giving made easy with the permaculture playing cards