Issue 23571 - Cannot use included template definitions within other schemas
Summary: Cannot use included template definitions within other schemas
Status: CLOSED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: code (show other issues)
Version: OOo 1.1
Hardware: All All
: P3 Trivial (vote)
Target Milestone: OOo 2.0
Assignee: carsten.driesner
QA Contact: Unknown
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-15 14:30 UTC by carsten.driesner
Modified: 2004-03-04 13:35 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description carsten.driesner 2003-12-15 14:30:47 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>
Comment 1 joerg.barfurth 2003-12-15 14:56:14 UTC
In layermerge.cxx, there is missing a call to setName() for new template
instances from imported templates.
Comment 2 joerg.barfurth 2003-12-16 16:36:05 UTC
Fix committed in project configmgr.
Comment 3 joerg.barfurth 2004-02-11 11:37:29 UTC
back to submitter for verification
Comment 4 carsten.driesner 2004-02-11 13:15:25 UTC
CD: I heavily use this in my CWS and as it works without any problem this bug
can be set to fixed.
Comment 5 carsten.driesner 2004-02-11 13:16:01 UTC
.
Comment 6 carsten.driesner 2004-03-04 13:35:20 UTC
CD: Check and successfully verified on master SRC680m28.