This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

create element


In my input xml file, I have this structure :
<table>
   <row>
	<cell>
	  Name
	</cell>
	<cell>
	  Hassan
	</cell>
   </row>			
   <row>
	<cell>
	  Age
	</cell>
	<cell>
	  23 year
	</cell>
   </row>
   <row>
	<cell>
	  City
	</cell>
	<cell>
	  Bordeaux
	</cell>
   </row>
   <row>
	<cell>
	  Country
	</cell>
	<cell>
	  France
	</cell>
   </row>
</table>

I want to have an output file with this structure:

<rule name="Name" value="Hassan">
    <Age>
      23 year
    </Age>
    <City>
	Bordeaux
    </City>
    <Country>
	France
    </Country>
</rule>

Thank you for helping

H. Chaoui		 				 


+----------------------------------------------------------------+
| Ce courrier ainsi que les fichiers joints sont confidentiels.  |
| Si vous avez recu ce courrier par erreur, veuillez en informer |
| l'administrateur du systeme : exp-iris@unedic.fr               |
|                          ---------                             |
| Ce message confirme que le courrier a passe le controle        |
| antivirus du relais de messagerie Internet avec succes.        |
+----------------------------------------------------------------+


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]