i am trying to create a map in xslt which uses an xml file as input and generates a yaml file
suppose the xml file is as below
<library>
<location>school</location>
<books>
<fiction>
<author> abc </abc>
<price>345</price>
</fiction>
<general_knowledge>
<name> axf </name>
</general_knowledge>
</books>
</library>
firstly i need to create a map variable then i need to check if node starts with location then write to the map as
location:school
and then later if node starts with fiction
name:abc
price:345
so final map would be
location:school
name:abc
price:345
No comments:
Post a Comment