[opencms-dev] Nested Structured Content and Locale
Fabian Huschka
fabian.huschka at componio.net
Wed Apr 25 12:18:22 CEST 2007
Hello,
finally I have managed to apply default values for nested content
elements. In the outer XML schema simply use XPATH to set the
corresponding default values.
However utilizing resource bundles gives me a headache as the default
locale is used for nested content whereas the specified locale is used
for the outer schema.
In the Example below key.A resolves to the correct locale and key.B
resolves to the default locale. The annotation section is part of the
outer schema.
Has anyone a clue if this is the expected behaviour or a bug?
Thanks in advance,
\Fabian
<xsd:annotation>
...
<resourcebundle name="some.resource.bundle"/>
<defaults>
<default element="sometag" value="{key.A}"
<default
element="Nested_Element_Name/Nested_Element_Tag[1]" value="${key.B}" />
</defaults>
...
</xsd:annotation>
More information about the opencms-dev
mailing list