Jump to content
kepha

Newbie Needs Help - Arrays And Access New Xml While Creating It

Recommended Posts

Hello,this maybe very stupid question but I need to know.I have one xml file and I use xslt 2.0 to create new xml file.During the creation I calculate some values for each element of the new xml file (node -> new xml represents graph)The thing is that some values depends on the values that I already previously calculated. The values are coordinates of the nodes in the GUI representation of the graph, by the way.So I need some kind of dynamic array which seems impossible in xsl, right?If the arrays are not possible than it would be convenient to access the part of new xml that I already created and to access the values that I already calculated. Which of these two is possible? Can you give me some example or some explanation, please?thanks

Edited by kepha

Share this post


Link to post
Share on other sites

Well with XSLT 2.0 you can certainly easily create temporary nodes and store them in a variable which you then use for further transformations or computations. And several processing steps in one single stylesheet are often done by using modes. If those hints don't help then provide some more details so that we can try to help with concrete code samples.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×