Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to Include XML into another XML #284

Open
gcfc opened this issue Jun 22, 2020 · 0 comments
Open

Failed to Include XML into another XML #284

gcfc opened this issue Jun 22, 2020 · 0 comments

Comments

@gcfc
Copy link

gcfc commented Jun 22, 2020

Does SCRAM support referencing other XMLs in the input file? I tried to put the probabilities of basic events in a separate params.xml as follows:

<?xml version="1.0"?>
<define-basic-event name="BatteryFault">
    <float value="0.0001"/>
</define-basic-event>

In input.xml (at the same directory as params.xml), I tried to reference the params file as follows:

<?xml version="1.0"?>
<!DOCTYPE opsa-mef [
<!ENTITY params SYSTEM "params.xml">
]>
<opsa-mef>
  <define-fault-tree name="DroneFaultTree">
    <define-gate name="...">
    ...
    </define-gate>
    &params;
  </define-fault-tree>
</opsa-mef>

The error message that I got was:

scram::mef::ValidityError

File: /home/.../input.xml
Line: 106

Undefined event BatteryFault with base path DroneFaultTree

If it helps, my current SCRAM version is

SCRAM 0.16.2 ()

Dependencies:
   Boost       1_65_1
   libxml2     2.9.4

Line 106 is the event BatteryFault (one of the <or> arguments within <define-gate>). The "..." are in place for brevity.

@rakhimov Please let me know, thank you for your time!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant