Open bam241 opened 8 years ago
@bam241 Do you think you could take a look at this and maybe update the website? I think I have a handle of your solution here, but it might be best coming from you.
yes I can.
I believe @katyhuff and @jbae11 have also working solution, maybe we can cross check our copies to provide the best answer ?
@gyutaepark is the original author of Predicting the past. I believe he explored various options for this function.
our solution are pretty close. my solution: main.xml:
<simulation xmlns:xi="http://www.w3.org/2001/XInclude">
[...]
<xi:include href="inclusion.xml" xpointer="xpointer(//My_include/*)"/>
[...]
</simulation>
<My_include>
[some cyclus archetypes/recipes declarations]
<\My_include>
@gyutaepark solution: main.xml:
<simulation xml:base="/home/gyutae/cyclus/predicting-the-past/cyclus_input/"
xmlns:xi="http://www.w3.org/2001/XInclude">
[...]
<xi:include href="inclusion.xml#xpointer(/inclusions/child::*)"/>
[...]
<\simulation>
<inclusions>
[some cyclus archetypes/recipes declarations]
</inclusions>
but looking at the reactor list, I feel like he was able to remove the <inclusions><\inclusions>
bracket from the included file
@gyutaepark Am I correct ?
Sorry for the loooong delay. I've only realized today that this issue was created.
Yes, I was able to remove the root tag from the to_be_included.xml.
This was done so using an xpointer
as shown here predicting-the-past under XML inclusion and Setting XML base for final input file
.
It seems like both our solutions agree on using xpointer
's.
@bam241
After testing it appears including files as described works only when including file with only one block.
I have tested different cases and found a solution. The different test I have made are described there : https://groups.google.com/forum/#!topic/cyclus-dev/tbzLDZ3zFP4
BaM