-
Notifications
You must be signed in to change notification settings - Fork 107
Inclusions process for XML files #64
Comments
This is really neat, your other pieces of code too. Why not add these to the GSL repository, perhaps in a new directory? On Fri, Dec 12, 2014 at 2:46 PM, Caner Candan [email protected]
|
Hi @hintjens, Thanks I appreciate, regarding your suggestion, I have no idea about the best place in the GSL repository to host them. BTW, is there an easy way to add this new function as a builtin GSL function ? Maybe it could even be better to reimplement it in C code. What do you think ? |
GSL uses .gxl files to build new classes in C, generating the hooks to plug On Sat, Dec 13, 2014 at 10:13 AM, Caner Candan [email protected]
|
Something that I am using quite a lot with my models is the ability to include XML files into others. I was usually doing it in hand-writing every time a GSL script to include a specific file (similarly to the example provided by the GSL guide) but honestly that sucks ;-) and I guess it's not in the MOP spirit. That's why I created a recursive function that includes every single node named
include
with an attributefile
.Here's an example of model in XML including other XML files:
script.gsl
:project.xml
:file1.xml
:<file1_markup/>
file2.xml
:file3/file3.xml
:Here is the actual source code of the function:
Another solution could be to use the XInclude XML inclusion mechanism, here is the w3c rfc: http://www.w3.org/TR/xinclude/
The text was updated successfully, but these errors were encountered: