I would like to generate CDATA of one xmk construct like this.
This does not calculate $1,$f2 and $f3 and insert their serialized version into features tag
Can we do this in xquery?

let $allfs := <record>
                      <name>{$name}</name>
                      <features>
                        <![CDATA[
                        <h3>Features:</h3>
                        <br/>
                        <ul>
                          <li>{$f1}</li>
                          <li>{$f2}</li>
                          <li>{$f3}</li>
                        </ul>
                        ]]>
                      </features>
                  </record>

Erol Akarsu