Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > XML substitution problem (simulation)

Thread Tools

XML substitution problem (simulation)

ian mayo
Posts: n/a
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
- 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.


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
"value substitution/population" in template XML using XPath Bilal XML 2 09-18-2006 10:28 AM
XML Schema EDC, UPA and substitution groups Soren Kuula XML 2 02-03-2006 04:20 AM
Xml Schema substitution groups / key keyref John Carron XML 2 09-02-2005 06:22 PM
Xml Schema substitution groups / key and keyref John Carron XML 0 09-01-2005 06:52 PM
substitution for ms xml dom object Marko Faldix Python 0 11-27-2003 03:37 PM