Apache OpenOffice (AOO) Bugzilla – Issue 23571
Cannot use included template definitions within other schemas
Last modified: 2004-03-04 13:35:20 UTC
The configuration supports to include/use template defintions from one schema file in another one. Within the officecfg project everything works without any problem. When I start to use the API I have serious problems. I only get one item from a set with more than one hundred items! See example below: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE oor:component-schema SYSTEM "../../../../../component-schema.dtd"> <oor:component-schema xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" oor:name="Commands" oor:package="org.openoffice.Office.UI" xml:lang="en-US"> <templates> <group oor:name="LabelType"> <prop oor:name="Label" oor:type="xs:string" oor:localized="true"/> </group> </templates> <component/> </oor:component-schema> <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE oor:component-schema SYSTEM "../../../../../component-schema.dtd"> <oor:component-schema xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" oor:name="WriterCommands" oor:package="org.openoffice.Office.UI" xml:lang="en-US"> <import oor:component="org.openoffice.Office.Common"/> <uses oor:component="org.openoffice.Office.Common"/> <templates/> <component> <group oor:name="UserInterface"> <set oor:name="Label" oor:node-type="LabelType" oor:component="org.openoffice.Office.UI.Commands"> </set> </group> </component> </oor:component-schema>
In layermerge.cxx, there is missing a call to setName() for new template instances from imported templates.
Fix committed in project configmgr.
back to submitter for verification
CD: I heavily use this in my CWS and as it works without any problem this bug can be set to fixed.
.
CD: Check and successfully verified on master SRC680m28.