The output of the transformation is shown . The LANSA Editor puts the relevant sections in their appropriate location in the target document (the WebRoutine XSL stylesheet)
<?xml version="1.0" encoding="UTF-8"?>
<lansa_design:payload xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:lxml=http://www.lansa.com/2002/XML/Runtime-Data
xmlns:wd="http://www.lansa.com/2002/XSL/Weblet-Design"
xmlns:lansa_design="http://www.lansa.com/2002/XML/Design"
xmlns="http://www.w3.org/1999/xhtml">
<lansa_design:imports>
<xsl:import href="std_dropdown.xsl" />
</lansa_design:imports>
<lansa_design:lxml-data>
<lxml:data>
<lxml:picklist id="380F247733D94ECDA37898AA9AEFCCD5">
<lxml:item default="true">
<lxml:caption>
<lxml:variable name="MTXTDEMCALEN05801"></lxml:variable>
</lxml:caption>
<lxml:value>MON</lxml:value>
</lxml:item>
<lxml:item>
<lxml:caption>
<lxml:variable name="MTXTDEMCALEN06001"></lxml:variable>
</lxml:caption>
<lxml:value>TUE</lxml:value>
</lxml:item>
<lxml:item>
<lxml:caption>
<lxml:variable name="MTXTDEMCALEN06201"></lxml:variable>
</lxml:caption>
<lxml:value>WED</lxml:value>
</lxml:item>
<lxml:item>
<lxml:caption>
<lxml:variable name="MTXTDEMCALEN06401"></lxml:variable>
</lxml:caption>
<lxml:value>THU</lxml:value>
</lxml:item>
<lxml:item>
<lxml:caption>
<lxml:variable name="MTXTDEMCALEN06601"></lxml:variable>
</lxml:caption>
<lxml:value>FRI</lxml:value>
</lxml:item>
<lxml:item>
<lxml:caption>
<lxml:variable name="MTXTDEMCALEN06801"></lxml:variable>
</lxml:caption>
<lxml:value>SAT</lxml:value>
</lxml:item>
<lxml:item>
<lxml:caption>
<lxml:variable name="MTXTDEMCALEN07001"></lxml:variable>
</lxml:caption>
<lxml:value>SUN</lxml:value>
</lxml:item>
</lxml:picklist>
</lxml:data>
</lansa_design:lxml-data>
<lansa_design:content>
<lansa_design:label>
<label class="caption" for="DAYOFWEEK">
<xsl:value-of select="key('field-caption', 'DAYOFWEEK')/lxml:description" />
</label>
</lansa_design:label>
<lansa_design:value>
<xsl:call-template name="std_dropdown">
<xsl:with-param name="name" select="'DAYOFWEEK'" />
<xsl:with-param name="value" select="key('field-value', 'DAYOFWEEK')" />
<xsl:with-param name="display_mode" select="'input'" />
<xsl:with-param name="items" select="document('')/*/lxml:data/lxml:picklist[@id = '380F247733D94ECDA37898AA9AEFCCD5']" />
</xsl:call-template>
</lansa_design:value>
</lansa_design:content>
</lansa_design:payload>