[opencms-dev] Default Values for Nested Elements

Tobias Karrer kartobi at gmail.com
Wed May 3 17:44:52 CEST 2017


That's still the way how to do it.
How do your XSDs look like?

Best,
Tobias

Am 01.05.2017 um 07:28 schrieb Clement Wee:
> Hi guys,
>
> I have a resource-type composed of two nested XSDs. I need to set the 
> default values in these nested XSDs.
>
> I found some directions for that on a post on this mailing list dated 
> from 2008, but when I tried following the instructions, the system 
> threw a "No such element error".
>
> The directions were:
>
> "you have to define the default values within the most outer schema (the one
> which is called to create the resource).
> Further you have to specify the full path to pick the right node.
>
> For example foo.xsd is nested within bar.xsd by the element name of
> SomeElement. Further foo.xsd contains the element AnotherElement. In case
> you want to set a default value for all AnotherElement(s) you have to add
> the following to *bar.xsd*.
>
> <defaults>
> 	<default element="SomeElement/AnotherElement" value="abc"/>
> </defaults>
> "
>
> Has the way of handling default values in OpenCMS for nested XSDs 
> changed between 2008 and 2017? If so, what is the new way?
>
>
> Regards,
> Clement Wee
> Singapore
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20170503/2a8b39d0/attachment.htm>


More information about the opencms-dev mailing list