So now I have a happy little tree displayed like so:
So now that I have that I am able to tackle the next set of problems. I need the content pane area to the right to change depending on what is selected from tha tree. The example from the site doesnt go this far, only as far as getting the tree to display the way you want it to... This is how the tree is displayed.
First I had to create a DTD file to specify the branches of the tree:
Then I have my xml file that contains all my elements and is where the tree gets its data from:
The dtd tells the tree to pull the root node from the <name> element, and then put each <device> element below that. I still have to alter both of the above code samples, but the idea is there.
Then I just embed the tree into my xhtml page and it displays just fine.
A lot of lead up to my questions, I know ,but I cant think of a way to simplify this.
So my first question is, where would this even be handled in the code from above? It would seem to me that it would have to be in the xsl code right? But this is my first time working with xsl so Im not really sure. Any tips to get me started in the right direction would be great.
My second question I think i will start a new post for, because this one is already so long I doubt anyone is gong to want to read through it in the first place lol. Ill post the link tho the second question in a bit, but it is pretaining to editing the DTD to allow me to include other elements that will not be part of the tree. I'm sure it is a simple keyword I need to add in but I have no experience with DTD other than this right now either.
Thanks if you read through this at least
True wisdom is in knowing you know nothing - Socrates