<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Dear all,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I try to apply a JSP template to nested content.<o:p></o:p></p>
<p class="MsoNormal">I have a XSD  like :<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F"><xsd:schema
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">xmlns:xsd="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">http://www.w3.org/2001/XMLSchema</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">elementFormDefault="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">qualified</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">></span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black">      
</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F"><xsd:include
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">schemaLocation="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">opencms://opencms-xmlcontent.xsd</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">/></span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black">      
</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F"><xsd:include
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">schemaLocation="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">opencms://system/modules/cn.opencms.mysql.ecrm/schemas/formfields/option.xsd</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">/></span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:black">      
</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F"><xsd:element
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">name="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">Selects</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">type="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">OpenCmsSelects</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">/><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">       …….<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F"><xsd:complexType
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">name="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">OpenCmsSelect</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">></span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:black">             
</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F"><xsd:sequence><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">                     <xsd:element
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">name="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">options</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">type="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">OpenCmsOption</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">minOccurs="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">0</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">maxOccurs="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">unbounded</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">/><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">              </xsd:sequence><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">              <xsd:attribute
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">name="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">language</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">type="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">OpenCmsLocale</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">use="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">optional</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">/></span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:black">      
</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F"></xsd:complexType><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F"></xsd:schema><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F"><o:p> </o:p></span></p>
<p class="MsoNormal">With the CmsOption XSD:<o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F"><xsd:schema
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">xmlns:xsd="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">http://www.w3.org/2001/XMLSchema</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">elementFormDefault="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">qualified</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">></span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black">      
</span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black">      
</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F"><xsd:include
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">schemaLocation="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">opencms://opencms-xmlcontent.xsd</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">/></span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black">      
</span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black">      
</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F"><xsd:element
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">name="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">Options</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">type="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">OpenCmsOptions</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">/></span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:black">       ….<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black">      
</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F"><xsd:complexType
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">name="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">OpenCmsOption</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">></span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black">             
</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F"><xsd:sequence></span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black">                    
</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F"><xsd:element
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">name="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">value</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">type="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">OpenCmsString</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">minOccurs="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">1</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">maxOccurs="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">1</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">/></span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:black">                    
</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F"><xsd:element
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">name="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">text</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">type="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">OpenCmsString</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">minOccurs="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">1</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">maxOccurs="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">1</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">/><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">              </xsd:sequence></span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black">             
</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F"><xsd:attribute
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">name="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">language</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">type="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">OpenCmsLocale</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">use="</span><span style="font-size:10.0pt;font-family:Consolas;color:blue">optional</span><span style="font-size:10.0pt;font-family:Consolas;color:#7F007F">"</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">/></span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black">      
</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F"></xsd:complexType></span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F"></xsd:schema><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F"><o:p> </o:p></span></p>
<p class="MsoNormal">And the option template option.jsp as :<o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:teal"><</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F;background:silver;mso-highlight:silver">cms:contentload</span><span style="font-size:10.0pt;font-family:Consolas">
<span style="color:#7F007F">collector</span><span style="color:black">=</span><i><span style="color:#2A00FF">'singleFile'</span></i>
<span style="color:#7F007F">param</span><span style="color:black">=</span><i><span style="color:#2A00FF">'%(opencms.filename)'</span></i><span style="color:teal">></span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:teal"><</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">cms:contentaccess</span><span style="font-size:10.0pt;font-family:Consolas">
<span style="color:#7F007F">var</span><span style="color:black">=</span><i><span style="color:#2A00FF">'optionContent'</span></i>
<span style="color:teal">/></span><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:black">      
</span><span style="font-size:10.0pt;font-family:Consolas;color:teal"><</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">cms:template</span><span style="font-size:10.0pt;font-family:Consolas">
<span style="color:#7F007F">element</span><span style="color:black">=</span><i><span style="color:#2A00FF">"option"</span></i><span style="color:teal">><o:p></o:p></span></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:teal">              <</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">c:set</span><span style="font-size:10.0pt;font-family:Consolas">
<span style="color:#7F007F">var</span><span style="color:black">=</span><i><span style="color:#2A00FF">'optionValue'</span></i>
<span style="color:#7F007F">value</span><span style="color:black">=</span><i><span style="color:#2A00FF">''</span></i><span style="color:teal">/></span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black">             
</span><span style="font-size:10.0pt;font-family:Consolas;color:teal"><</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">cms:contentcheck</span><span style="font-size:10.0pt;font-family:Consolas">
<span style="color:#7F007F">ifexists</span><span style="color:black">=</span><i><span style="color:#2A00FF">'optionContent.value'</span></i><span style="color:teal">></span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black">                    
</span><span style="font-size:10.0pt;font-family:Consolas;color:teal"><</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">c:set</span><span style="font-size:10.0pt;font-family:Consolas">
<span style="color:#7F007F">var</span><span style="color:black">=</span><i><span style="color:#2A00FF">'optionValue'</span></i><span style="color:teal">><</span><span style="color:#3F7F7F">cms:contentshow</span>
<span style="color:#7F007F">element</span><span style="color:black">=</span><i><span style="color:#2A00FF">'optionContent.value'</span></i>
<span style="color:teal">/></</span><span style="color:#3F7F7F">c:set</span><span style="color:teal">></span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black">             
</span><span style="font-size:10.0pt;font-family:Consolas;color:teal"></</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">cms:contentcheck</span><span style="font-size:10.0pt;font-family:Consolas;color:teal">></span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black">             
</span><span style="font-size:10.0pt;font-family:Consolas;color:teal"><</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">c:if</span><span style="font-size:10.0pt;font-family:Consolas">
<span style="color:#7F007F">test</span><span style="color:black">=</span><i><span style="color:#2A00FF">'</span></i><span style="color:black">${!</span><b><span style="color:#7F0055">empty
</span></b><span style="color:black">optionValue}</span><i><span style="color:#2A00FF">'</span></i><span style="color:teal">></span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black">                    
</span><span style="font-size:10.0pt;font-family:Consolas;color:teal"><</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">c:set</span><span style="font-size:10.0pt;font-family:Consolas">
<span style="color:#7F007F">var</span><span style="color:black">=</span><i><span style="color:#2A00FF">'optionValue'</span></i>
<span style="color:#7F007F">value</span><span style="color:black">=</span><i><span style="color:#2A00FF">' value="</span></i><span style="color:black">${value}</span><i><span style="color:#2A00FF">"'</span></i><span style="color:teal">/></span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black">             
</span><span style="font-size:10.0pt;font-family:Consolas;color:teal"></</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">c:if</span><span style="font-size:10.0pt;font-family:Consolas;color:teal">></span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black">             
</span><span style="font-size:10.0pt;font-family:Consolas;color:teal"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in;text-indent:.5in;text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas;color:teal"><</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">c:set</span><span style="font-size:10.0pt;font-family:Consolas">
<span style="color:#7F007F">var</span><span style="color:black">=</span><i><span style="color:#2A00FF">'optionText'</span></i>
<span style="color:#7F007F">value</span><span style="color:black">=</span><i><span style="color:#2A00FF">''</span></i><span style="color:teal">/></span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black">             
</span><span style="font-size:10.0pt;font-family:Consolas;color:teal"><</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">cms:contentcheck</span><span style="font-size:10.0pt;font-family:Consolas">
<span style="color:#7F007F">ifexists</span><span style="color:black">=</span><i><span style="color:#2A00FF">'optionContent.text'</span></i><span style="color:teal">></span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black">                    
</span><span style="font-size:10.0pt;font-family:Consolas;color:teal"><</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">c:set</span><span style="font-size:10.0pt;font-family:Consolas">
<span style="color:#7F007F">var</span><span style="color:black">=</span><i><span style="color:#2A00FF">'optionText'</span></i><span style="color:teal">><</span><span style="color:#3F7F7F">cms:contentshow</span>
<span style="color:#7F007F">element</span><span style="color:black">=</span><i><span style="color:#2A00FF">'optionContent.text'</span></i>
<span style="color:teal">/></</span><span style="color:#3F7F7F">c:set</span><span style="color:teal">></span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black">             
</span><span style="font-size:10.0pt;font-family:Consolas;color:teal"></</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">cms:contentcheck</span><span style="font-size:10.0pt;font-family:Consolas;color:teal">><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">             
<span style="color:teal"><</span><span style="color:#3F7F7F;background:silver;mso-highlight:silver">option</span><span style="color:teal"><</span><span style="color:#3F7F7F">c:out</span>
<span style="color:#7F007F">escapeXml</span><span style="color:black">=</span><i><span style="color:#2A00FF">'false'</span></i>
<span style="color:#7F007F">value</span><span style="color:black">=</span>'<span style="color:black">${optionClass}${optionId}${optionDisabled}${optionSelected}${optionValue}</span>'
<span style="color:teal">/>><</span><span style="color:#3F7F7F">c:out</span> <span style="color:#7F007F">
value</span><span style="color:black">=</span><i><span style="color:#2A00FF">"</span></i><span style="color:black">${optionText}</span><i><span style="color:#2A00FF">"</span></i><span style="color:teal">/></</span><span style="color:#3F7F7F;background:silver;mso-highlight:silver">option</span><span style="color:teal">></span><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:black">      
</span><span style="font-size:10.0pt;font-family:Consolas;color:teal"></</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">cms:template</span><span style="font-size:10.0pt;font-family:Consolas;color:teal">><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:teal"></cms:contentload>  
</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">For both XSD I have setup corresponding resourcetypes and corresponding templates JSP’s<o:p></o:p></p>
<p class="MsoNormal">Within the template for the select now I want to apply the template of the options resource like:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:teal"><</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F;background:silver;mso-highlight:silver">cms:contentloop</span><span style="font-size:10.0pt;font-family:Consolas">
<span style="color:#7F007F">element</span><span style="color:black">=</span><i><span style="color:#2A00FF">"options"</span></i><span style="color:teal">></span><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:black">      
</span><span style="font-size:10.0pt;font-family:Consolas;color:teal"><</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">cms:contentaccess</span><span style="font-size:10.0pt;font-family:Consolas">
<span style="color:#7F007F">var</span><span style="color:black">=</span><i><span style="color:#2A00FF">'optionContent'</span></i>
<span style="color:teal">/></span></span><o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none">                <span style="font-size:10.0pt;font-family:Consolas;color:teal">
<</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F;background:silver;mso-highlight:silver">cms:include</span><span style="font-size:10.0pt;font-family:Consolas">
<span style="color:#7F007F">file</span><span style="color:black">=</span><i><span style="color:#2A00FF">"/system/modules/cn.bmw.opencms.mysql.ecrm/templates/option.jsp"</span></i><span style="color:teal">></span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black">             
</span><span style="font-size:10.0pt;font-family:Consolas;color:teal"><</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">cms:param</span><span style="font-size:10.0pt;font-family:Consolas">
<span style="color:#7F007F">name</span><span style="color:black">=</span><i><span style="color:#2A00FF">"optionContent"</span></i>
<span style="color:#7F007F">value</span><span style="color:black">=</span><i><span style="color:#2A00FF">"</span></i><span style="color:black">${optionContent}</span><i><span style="color:#2A00FF">"</span></i><span style="color:teal">/></span><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black">      
</span><span style="font-size:10.0pt;font-family:Consolas;color:teal"></</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F;background:silver;mso-highlight:silver">cms:include</span><span style="font-size:10.0pt;font-family:Consolas;color:teal">><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:teal"></</span><span style="font-size:10.0pt;font-family:Consolas;color:#3F7F7F">cms:contentloop</span><span style="font-size:10.0pt;font-family:Consolas;color:teal">></span>     
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">But in the end the options get not correctly rendered the [text] and [value] are missing:<o:p></o:p></p>
<p class="MsoNormal">It renders something like:<o:p></o:p></p>
<p class="MsoNormal"><select …..><o:p></o:p></p>
<p class="MsoNormal">                <option></option> <o:p></o:p></p>
<p class="MsoNormal">                <option></option><o:p></o:p></p>
<p class="MsoNormal">                <option></option><o:p></o:p></p>
<p class="MsoNormal"><select><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">With empty options, Is there any way to achieve this  and to avoid to repeat<o:p></o:p></p>
<p class="MsoNormal">Template code from the option template in the select template again?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:black">Thomas Adams</span></b><b><span lang="ZH-CN" style="font-size:9.0pt;font-family:SimSun;color:black">德勤</span></b><span style="font-size:8.5pt;color:#515151"><br>
</span><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:black">DIRECTOR APPLICATION DEVELOPMENT<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:"Arial","sans-serif";color:#515151"><br>
<img width="114" height="24" id="Picture_x0020_1" src="cid:image001.png@01CF39E0.6AF96320" alt="io"><br>
<br>
</span><b><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:black">INTERONE CHINA // AN AGENCY OF BBDO WORLDWIDE<br>
1604, E -TOWER, 12 GUANGHUA ROAD, CHAOYANG DISTRICT, BEIJING 100020, CHINA</span></b><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:black"><br>
</span><span lang="ZH-CN" style="font-size:8.5pt;font-family:SimSun;color:black">北京天一国际广告有限公司</span><span style="font-size:8.5pt;font-family:"Arial","sans-serif";color:black"><br>
</span><span lang="ZH-CN" style="font-size:8.5pt;font-family:SimSun;color:black">光华路丙</span><span style="font-size:8.5pt;font-family:"Arial","sans-serif";color:black">12</span><span lang="ZH-CN" style="font-size:8.5pt;font-family:SimSun;color:black">号数码</span><span style="font-size:8.5pt;font-family:"Arial","sans-serif";color:black">01</span><span lang="ZH-CN" style="font-size:8.5pt;font-family:SimSun;color:black">大厦</span><span style="font-size:8.5pt;font-family:"Arial","sans-serif";color:black">1604</span><span lang="ZH-CN" style="font-size:8.5pt;font-family:SimSun;color:black">室,</span><span style="font-size:8.5pt;font-family:"Arial","sans-serif";color:black">100020 </span><span lang="ZH-CN" style="font-size:8.5pt;font-family:SimSun;color:black">北京,朝阳区</span><span style="font-size:8.5pt;font-family:"Arial","sans-serif";color:#515151"><br>
<br>
</span><b><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:black">PHONE</span></b><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:black"> +86 10.65 91 3792 <b>EXT.</b> -3026 <b>// MOBILE</b></span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"> </span><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:black">+86
 139 1059 0750</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"> </span><span style="font-size:8.5pt;font-family:"Arial","sans-serif";color:#515151"><br>
<br>
</span><span style="color:#1F497D"><a href="https://mail.weboutlook.hk/owa/redir.aspx?C=4f9ed844d60c4108874abc272e3662e9&URL=http%3a%2f%2fwww.interone.cn%2f" target="_blank"><b><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:black">WWW.INTERONE.CN</span></b></a></span><b><span style="font-size:8.5pt;font-family:"Arial","sans-serif";color:#515151"><br>
<br>
</span></b><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#515151">PLEASE CONSIDER THE ENVIRONMENT BEFORE PRINTING THIS E-MAIL.</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>