<div>Hi,</div><div><br></div><div>I am working on "Slide Layout Extendibility" project for GSOC. As for one of my initial task,I had to set up XML file and parser which reads information from that XML file.So as of now the parser is working perfectly and even compilation works perfectly.But the "unit test" fails.I have been stuck on this error for last 4 days and it seems that,there is a bug in the "unit-test" process(for XML configuration files in Impress). And I am sharing this problem as per the advice of my mentor Thorsten(Please refer to my commit & Error links at the end):</div>


<div><br></div><div>(1) So for setting up the configuration path of "layoutlist.xml" ,I have made an entry of "LayoutListFiles",similar to that of "EffectFiles" in "Impress.xcs:457".</div>

<div><br></div><div>(2) The code processing of XML is similar to that in "core/sd/source/core/CustomAnimationPreset.cxx:300".</div>
<div><br></div><div>(3) After using xNameAccess->getByName( "LayoutListFiles" ) >>= aFiles and expandMacros() function.The configuration file-path</div><div>"<b>vnd.sun.star.expand:$BRAND_BASE_DIR/share/config/soffice.cfg/simpress/layoutlist.xml</b>" expands to "<b>/home/vishv/Libre_Git/core/solver/unxlngx6/installation/opt/program/../share/config/soffice.cfg/simpress/layoutlist.xml</b>" for "installation" process.</div>


<div><br></div><div>But for "Unit-Test" ,it expands to  "<b>/home/vishv/Libre_Git/core/solver/unxlngx6/unittest/install/share/config/soffice.cfg/simpress/layoutlist.xml</b>".</div><div><br></div><div>
I am using the above generated string in <b>parseURI(string filepath)</b> to get DOM structure and then traverse through XML for information.</div>
<div><br></div><div>(4)So in-spite of unit-test errors, XML parser works perfectly,because correct path goes into the parseURI() in the installation process(i.e .install/program/simpress works well without any crashes).</div>

<div><br></div><div>(5)The problem here is that path generated for unit-test check is wrong:</div><div><br></div><div>Correct path should be: "<b>/home/vishv/Libre_Git/core/solver/unxlngx6/unittest/install/../user/share/config/soffice.cfg/simpress/layoutlist.xml</b>" , because at this place a new "layoutlist.xml" is generated after packaging.</div>


<div>But the wrong path generated as stated above is :"<b>/home/vishv/Libre_Git/core/solver/unxlngx6/unittest/install/share/config/soffice.cfg/simpress/layoutlist.xml</b>"</div><div>It leads to errors (i.e <span style="font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono',monospace,serif;font-size:12px;line-height:21px;background-color:rgb(255,255,255)">failed to load external entity</span>  at "filepath..." )</div>
<div><br></div><div>Also this scenario happens for the current configuration "effects.xml" file as well.</div>

<div><br></div><div>It would be great ,if someone can guide in correcting the "unit-test" path and indeed removing the error.Also please correct me,if I am wrong in my observations.</div><div><br></div><div>Here are the links of my commits and Errors for Reference:</div>


<div>Error: <a href="http://pastebin.com/PPUuXXQt" target="_blank">Error-Link</a></div><div>feature/gsoc-impresslayout: <a href="http://cgit.freedesktop.org/libreoffice/core/commit/?h=feature/gsoc-impresslayout&id=e2a23779c42a4b252706794dd7e89e975804c50e" target="_blank">Commit2</a> & <a href="http://cgit.freedesktop.org/libreoffice/core/commit/?h=feature/gsoc-impresslayout&id=d5a552ee01d491e85b76dbb9c373a019ce18a06a">Commit3</a></div>

<div><br></div><div>Thanks and Regards,</div><div>Vishv Brahmbhatt</div>