W
Wizfrog
Hello,
I'm working on a fairly complex project where it seems easier to
transform XML data into some other XML tree like structure, before
using that tree to build my HTML display.
so, instead of using 2 XSL transforms, is there a way to do it all at
once, doing 2 passes?
basically my problem is that I have a linear set of data, where each
element may be a sub element of another or many others.
the display to the user is a form of hierarchy tree, so i generate the
tree first from the linear structure, but I want unique ID for each
element of the tree, however when i use the generate-id() function, i
get multiple object with the same id, since the is the same element in
the original document, so I end up needing to do a second pass to
generate ids from the elements of the tree structure which are unique.
My tree is pretty big already (several 100's elements) so it is pretty
slow to generate one pass. Ideally i'd like to speed this up too
any insight?
let me know!
I'm working on a fairly complex project where it seems easier to
transform XML data into some other XML tree like structure, before
using that tree to build my HTML display.
so, instead of using 2 XSL transforms, is there a way to do it all at
once, doing 2 passes?
basically my problem is that I have a linear set of data, where each
element may be a sub element of another or many others.
the display to the user is a form of hierarchy tree, so i generate the
tree first from the linear structure, but I want unique ID for each
element of the tree, however when i use the generate-id() function, i
get multiple object with the same id, since the is the same element in
the original document, so I end up needing to do a second pass to
generate ids from the elements of the tree structure which are unique.
My tree is pretty big already (several 100's elements) so it is pretty
slow to generate one pass. Ideally i'd like to speed this up too
any insight?
let me know!