jimmybambino
Programmer
I need to be able to use xslt to transform this:
<?xml version="1.0" encoding="UTF-8"?>
<FormTree>
<Node Description="Ohio" OrderId="10000">
<Node Description="Southwest Counties" OrderId="20000">
<Node Description="Butler" OrderId="50000">
<Node Description="Decedent's Estate" OrderId="71500">
<GroupNode Description="Part 1" OrderId="1000">
<FormNode Description="1.0 - (Front) Surviving Spouse, Children, Next of Kin, Legatees and Devisees " OrderId="100" Category="standardestate" Code="1009" />
<FormNode Description="1.0 - (Back) Surviving Spouse, Children, Next of Kin, Legatees and Devisees" OrderId="200" Category="standardestate" Code="215" />
<FormNode Description="1.0 - (Prior) (Front) Surviving Spouse, Children, Next of Kin, Legatees and Devisees " OrderId="250" Category="standardestate" Code="109" />
</GroupNode>
</Node>
</Node>
</Node>
</FormTree>
in to this:
<?xml version="1.0" encoding="UTF-8"?>
<!-- Butler Estate Created By James Hunt -->
<FormTree>
<Node Description="Ohio" OrderId="10000">
<Node Description="Southwest Counties" OrderId="20000">
<Node Description="Butler" OrderId="50000">
<Node Description="Decedent's Estate" OrderId="71500">
<GroupNode Description="Part 1" OrderId="1000">
<FormNode Description="1.0 - (Front) Surviving Spouse, Children, Next of Kin, Legatees and Devisees " OrderId="100" Category="standardestate" Code="1009" />
</GroupNode>
</Node>
</Node>
</Node>
</FormTree>
<?xml version="1.0" encoding="UTF-8"?>
<FormTree>
<Node Description="Ohio" OrderId="10000">
<Node Description="Southwest Counties" OrderId="20000">
<Node Description="Butler" OrderId="50000">
<Node Description="Decedent's Estate" OrderId="71500">
<GroupNode Description="Part 1" OrderId="1000">
<FormNode Description="1.0 - (Back) Surviving Spouse, Children, Next of Kin, Legatees and Devisees" OrderId="200" Category="standardestate" Code="215" />
</GroupNode>
</Node>
</Node>
</Node>
</FormTree>
<?xml version="1.0" encoding="UTF-8"?>
<FormTree>
<Node Description="Ohio" OrderId="10000">
<Node Description="Southwest Counties" OrderId="20000">
<Node Description="Butler" OrderId="50000">
<Node Description="Decedent's Estate" OrderId="71500">
<GroupNode Description="Part 1" OrderId="1000">
<FormNode Description="1.0 - (Prior) (Front) Surviving Spouse, Children, Next of Kin, Legatees and Devisees " OrderId="250" Category="standardestate" Code="109" />
</GroupNode>
</Node>
</Node>
</Node>
</FormTree>
This results also need to be put into separate files. Thanks for you help.
<?xml version="1.0" encoding="UTF-8"?>
<FormTree>
<Node Description="Ohio" OrderId="10000">
<Node Description="Southwest Counties" OrderId="20000">
<Node Description="Butler" OrderId="50000">
<Node Description="Decedent's Estate" OrderId="71500">
<GroupNode Description="Part 1" OrderId="1000">
<FormNode Description="1.0 - (Front) Surviving Spouse, Children, Next of Kin, Legatees and Devisees " OrderId="100" Category="standardestate" Code="1009" />
<FormNode Description="1.0 - (Back) Surviving Spouse, Children, Next of Kin, Legatees and Devisees" OrderId="200" Category="standardestate" Code="215" />
<FormNode Description="1.0 - (Prior) (Front) Surviving Spouse, Children, Next of Kin, Legatees and Devisees " OrderId="250" Category="standardestate" Code="109" />
</GroupNode>
</Node>
</Node>
</Node>
</FormTree>
in to this:
<?xml version="1.0" encoding="UTF-8"?>
<!-- Butler Estate Created By James Hunt -->
<FormTree>
<Node Description="Ohio" OrderId="10000">
<Node Description="Southwest Counties" OrderId="20000">
<Node Description="Butler" OrderId="50000">
<Node Description="Decedent's Estate" OrderId="71500">
<GroupNode Description="Part 1" OrderId="1000">
<FormNode Description="1.0 - (Front) Surviving Spouse, Children, Next of Kin, Legatees and Devisees " OrderId="100" Category="standardestate" Code="1009" />
</GroupNode>
</Node>
</Node>
</Node>
</FormTree>
<?xml version="1.0" encoding="UTF-8"?>
<FormTree>
<Node Description="Ohio" OrderId="10000">
<Node Description="Southwest Counties" OrderId="20000">
<Node Description="Butler" OrderId="50000">
<Node Description="Decedent's Estate" OrderId="71500">
<GroupNode Description="Part 1" OrderId="1000">
<FormNode Description="1.0 - (Back) Surviving Spouse, Children, Next of Kin, Legatees and Devisees" OrderId="200" Category="standardestate" Code="215" />
</GroupNode>
</Node>
</Node>
</Node>
</FormTree>
<?xml version="1.0" encoding="UTF-8"?>
<FormTree>
<Node Description="Ohio" OrderId="10000">
<Node Description="Southwest Counties" OrderId="20000">
<Node Description="Butler" OrderId="50000">
<Node Description="Decedent's Estate" OrderId="71500">
<GroupNode Description="Part 1" OrderId="1000">
<FormNode Description="1.0 - (Prior) (Front) Surviving Spouse, Children, Next of Kin, Legatees and Devisees " OrderId="250" Category="standardestate" Code="109" />
</GroupNode>
</Node>
</Node>
</Node>
</FormTree>
This results also need to be put into separate files. Thanks for you help.