XML substitution problem (simulation)

ian mayo

Usenet Archive
Joined
Aug 30, 2001
Messages
19
Reaction score
0
Hi all,
I'm producing an simulation environment using scenarios defined in XML.

I want my users to be able to create a "variance" file in XML which will allow them to specify how the original scenario should be modified before re-running. Such modifications include:
- a new attribute value based either on a distribution or choice of values or
- new elements to use based on a series of choices

I'm developing in Java, but am unsure of the optimal technologies to use. The following is currently the favourite:
- Let the variance file identify the attribute/element to change using XPath
- Read the sceanrio into a DOM, then work through the variances - finding the attribute/element to change using XPath then generating a new value using variance attributes.

I'd appreciate anybody's opinions on this strategy. I've a gut feeling it may be possible with XSLT, but I can't think how.

Cheers,
Ian
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
548,208
Messages
3,104,802
Members
249,594
Latest member
henrywalsh

Latest Threads

Top