Greetings user list,
In order to add DB tables to the Business Intelligence app, I used XIncludes to import xml fragments into entitygroup.xml and entitymodel.xml. On restart, entities were not added, and the err.log reports: Invalid content was found starting with element 'xi:include'. One of '{copyright, author, version, default-resource-name, entity, view-entity, extend-entity}' is expected Is there a way to structure the entitydefs with includes? Max Peak |
Hi Max,
You can't (violates the XML schemas) but why would you anyway? Why not define the new entities directly in the XML file? Or why not create a new file for that purpose? Seems strange that you want to compose files. On Apr 3, 2017 8:38 PM, "Max Peak" <[hidden email]> wrote: Greetings user list, In order to add DB tables to the Business Intelligence app, I used XIncludes to import xml fragments into entitygroup.xml and entitymodel.xml. On restart, entities were not added, and the err.log reports: Invalid content was found starting with element 'xi:include'. One of '{copyright, author, version, default-resource-name, entity, view-entity, extend-entity}' is expected Is there a way to structure the entitydefs with includes? Max Peak |
Taher,
Thanks for your reply. I am planning a collection of BI data collection services that may require a large set of tables in OLAP. My thought was to put related defs in separate files for a logical organization and just include them in the master def files. It's not a big deal to put all in one file, it just seemed more organized. Thanks again, Max -----Original Message----- From: Taher Alkhateeb [mailto:[hidden email]] Sent: Monday, April 03, 2017 12:01 PM To: [hidden email] Subject: Re: entitydef XIncludes Hi Max, You can't (violates the XML schemas) but why would you anyway? Why not define the new entities directly in the XML file? Or why not create a new file for that purpose? Seems strange that you want to compose files. On Apr 3, 2017 8:38 PM, "Max Peak" <[hidden email]> wrote: Greetings user list, In order to add DB tables to the Business Intelligence app, I used XIncludes to import xml fragments into entitygroup.xml and entitymodel.xml. On restart, entities were not added, and the err.log reports: Invalid content was found starting with element 'xi:include'. One of '{copyright, author, version, default-resource-name, entity, view-entity, extend-entity}' is expected Is there a way to structure the entitydefs with includes? Max Peak |
In that case perhaps one solution is to define as many files as you want
and then include them all in ofbiz-component.xml as entity resources of type model .. I think this might achieve what you are looking for. Just make sure to load them in the proper sequence. On Mon, Apr 3, 2017 at 11:20 PM, Max Peak <[hidden email]> wrote: > Taher, > > Thanks for your reply. I am planning a collection of BI data collection > services that may require a large set of tables in OLAP. My thought was to > put related defs in separate files for a logical organization and just > include them in the master def files. It's not a big deal to put all in one > file, it just seemed more organized. > > Thanks again, > Max > > -----Original Message----- > From: Taher Alkhateeb [mailto:[hidden email]] > Sent: Monday, April 03, 2017 12:01 PM > To: [hidden email] > Subject: Re: entitydef XIncludes > > Hi Max, > > You can't (violates the XML schemas) but why would you anyway? Why not > define the new entities directly in the XML file? Or why not create a new > file for that purpose? Seems strange that you want to compose files. > > > On Apr 3, 2017 8:38 PM, "Max Peak" <[hidden email]> wrote: > > Greetings user list, > > > > In order to add DB tables to the Business Intelligence app, I used > XIncludes to import xml fragments into entitygroup.xml and entitymodel.xml. > > On restart, entities were not added, and the err.log reports: > > > > Invalid content was found starting with element 'xi:include'. One of > '{copyright, author, version, default-resource-name, entity, view-entity, > extend-entity}' is expected > > > > Is there a way to structure the entitydefs with includes? > > > > Max Peak > > |
Free forum by Nabble | Edit this page |