<div dir="ltr"><div>I will guarantee you that XML include mechanisms will not work. In an effort to reduce external dependencies, SWORD does not make use of a standard XML library and, therefore, won't offer functionality like includes.</div><div><br></div><div>However, osis2mod does offer the "-a" flag, which it says will "augment module if exists (default is to create new)". And that exists specifically to support the workflow you mention. If you want to have a separate XML file for each book of the Bible, then you can just run "osis2mod" with the -a flag for each subsequent file and it will add entries to the module files. So a simple script like</div><div><br></div><div>for src in *.xml; do</div><div> osis2mod -a "${src}" <other osis2mod args></div><div>done</div><div><br></div><div>Will recreate your module each time. Of course, you'll want to delete the existing files before you run this, or you'll end up with all sorts of weirdness from running through the same XML files multiple times.</div><div><br></div><div>--Greg<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jan 17, 2021 at 4:35 AM David Haslam <<a href="mailto:dfhdfh@protonmail.com">dfhdfh@protonmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> <div>Hi Pierre,<u></u><u></u></div><div><br></div><div>This is a very good idea but it would require considerable effort to incorporate into the release process script by the modules team. </div><div><br></div><div>First though, can osis2mod handle a file that uses this method? If not, what would it take to implement it in the ModTools & SWORD ?</div><div><br></div><div>Discuss details. </div><div><br></div><div>Aside: I’ve seen at least one example of an XML file set that uses this method. </div><div><br></div><div>Une version TEI XML de la traduction française de la Vulgate (Bible latine) par l'Abbé Glaire (†1879)<br><a href="https://github.com/MarjorieBurghart/VulgateGlaire" target="_blank">https://github.com/MarjorieBurghart/VulgateGlaire</a><br></div><div><br></div><div>I once converted her TEI files to a single OSIS file and built a module. Never got round to a formal submission to CrossWire. </div><div><br></div><div>Best regards</div><div><br></div><div>David</div><div><br></div><div id="gmail-m_6567312255376775015protonmail_mobile_signature_block"><div>Sent from ProtonMail Mobile</div></div> <div><br></div><div><br></div>On Sun, Jan 17, 2021 at 10:14, pierre amadio <<a href="mailto:amadio.pierre@gmail.com" target="_blank">amadio.pierre@gmail.com</a>> wrote:<blockquote type="cite"> Hi there !<br><br>I am having a look at the Osis format and find it inconvenient to deal<br>with the whole scripture in a single large xml document.<br><br>I would like to be able to have all books in a separate xml file and a<br>single container xml file referring to each book to be included in the<br>final bible.<br><br>I am not sure what is the best way to do that so that it is easy to<br>deal with osis2mod: XML entities, XInclude, something else ?<br><br>Any tips or suggestions welcome.<br>_______________________________________________<br>sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org" target="_blank">sword-devel@crosswire.org</a><br><a href="http://crosswire.org/mailman/listinfo/sword-devel" target="_blank">http://crosswire.org/mailman/listinfo/sword-devel</a><br>Instructions to unsubscribe/change your settings at above page<br></blockquote><div><br></div><div><br></div>_______________________________________________<br>
sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org" target="_blank">sword-devel@crosswire.org</a><br>
<a href="http://crosswire.org/mailman/listinfo/sword-devel" rel="noreferrer" target="_blank">http://crosswire.org/mailman/listinfo/sword-devel</a><br>
Instructions to unsubscribe/change your settings at above page</blockquote></div>