Dear community,
I'm trying to display KM content - in this case .xml files - by the help of a XSLT RepositoryFilter and it works fine for simple scenarios.
Right now I'm experiencing problems while trying to include xml files into another by the help of XML Entities, see these example:
Master xml file:
<?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE TEST [ <!ELEMENT TEST(ITEM)+> <!ELEMENT item (title)> <!ELEMENT title (#PCDATA)> <!ENTITY item1 SYSTEM "<PATH_TO_KM_FILE>/item1.xml"> <!ENTITY item2 SYSTEM "<PATH_TO_KM_FILE>/item2.xml"> ]> <TEST> &item1; &item2; </TEST>
Linked in file format:
<?xml version="1.0" encoding="ISO-8859-1"?> <item> <title>Test</title> </item>
<i>All of this has been tested on the file system and works without causing any trouble! So there is no XML parse errors or validation issues to be considered for now. The code pasted is a simple abstraction for what I would like to be able to accomplish.</i>
When trying to apply the filter - by opening the master XML file - an exception is thrown telling me, that<i> XML files cannot be parsed because multiple Resource Filters are defined for this resource</i>.
Has anyone out there tried a similar solution - integrate xml files in a big master file with entities - and got it working?
Another issue is the adressing of files within the same KM directory, I need to supply the full path (http://<host>:<port>/irj/go/km/docs/... to access the files - there must be a workaround for this?
Thanks for your help!
regard,
Christian