Jump to content

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
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.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...