Hi im fairly new to XML but I trying to generate documentation for a number of programs that have been saved as XML files (I have no control over the content of the source XML file).
A simplification of one of these files would be something like this: -
<Form name="form1" description="this is a test form">
<Screen name="screen1" description="this is screen1">
<Button name="button1" description="this is button1" prop1="blah" property2="blah" prop3="blah" etc>
</Button>
<Button name="button2" description="this is button2" prop1="blah" property2="blah" prop3="blah" etc>
</Button>
</Screen>
<Screen name="screen2" description="this is screen2">
<Button name="button1" description="this is button1" prop1="blah" property2="blah" prop3="blah" etc>
</Button>
<Button name="button2" description="this is button2 "prop1="blah" property2="blah" prop3="blah" etc>
</Button>
</Screen>
</Form>
This is a very simplified example but shows that there cane be nodes with the same name i.e. Button1 and that there is no clear way to identify which Button1 node we are interested in without looking at the full path.
I have worked out how to use XSLT to produce a collabsible list from this XML that looks something like this:-
-Form1
-Screens
-Screen1
-Buttons
-Button1
-Button2
-Screen2
-Buttons
-Button1
-Button2
What i now need to do is show the detail from the selected object, for example if the user clicks on Button1 under Screen1 then I would like a detail frame to show something like: -
Form1/Screen1/Button1
This is button 1
Properties:
Blah
Blah
Blah
A simplification of one of these files would be something like this: -
<Form name="form1" description="this is a test form">
<Screen name="screen1" description="this is screen1">
<Button name="button1" description="this is button1" prop1="blah" property2="blah" prop3="blah" etc>
</Button>
<Button name="button2" description="this is button2" prop1="blah" property2="blah" prop3="blah" etc>
</Button>
</Screen>
<Screen name="screen2" description="this is screen2">
<Button name="button1" description="this is button1" prop1="blah" property2="blah" prop3="blah" etc>
</Button>
<Button name="button2" description="this is button2 "prop1="blah" property2="blah" prop3="blah" etc>
</Button>
</Screen>
</Form>
This is a very simplified example but shows that there cane be nodes with the same name i.e. Button1 and that there is no clear way to identify which Button1 node we are interested in without looking at the full path.
I have worked out how to use XSLT to produce a collabsible list from this XML that looks something like this:-
-Form1
-Screens
-Screen1
-Buttons
-Button1
-Button2
-Screen2
-Buttons
-Button1
-Button2
What i now need to do is show the detail from the selected object, for example if the user clicks on Button1 under Screen1 then I would like a detail frame to show something like: -
Form1/Screen1/Button1
This is button 1
Properties:
Blah
Blah
Blah