WAM105 Appendix B

LANSA WAM

WAM105. Appendix B

The Utility weblet iii_keys may be created by copying the following XSL code, into a new weblet definition, to replace the default code.

<?xml version="1.0" encoding="UTF-8"?>

<!-- (c) 2002 LANSA -->

<!-- LANSA Runtime-Data XML Webroutine XSLT keys -->

<!-- $Workfile:: std_keys.xsl $ -->

<!-- $UTCDate:: 2011-02-17 23:35:34Z $ -->

<!-- $Revision:: 7 $ -->

<xsl:transform version="1.0" exclude-result-prefixes="lxml wd"

xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

xmlns:tsml="http://www.lansa.com/2002/XML/Generation-Metadata"

xmlns:lxml="http://www.lansa.com/2002/XML/Runtime-Data"

xmlns:wd="http://www.lansa.com/2002/XSL/Weblet-Design"

xmlns="http://www.w3.org/1999/xhtml">

<xsl:key name="field-caption"

match="/lxml:data/lxml:fields/lxml:field/lxml:caption"

use="../@name" />

<xsl:key name="field-value"

match="/lxml:data/lxml:fields/lxml:field/lxml:value" use="../@name" />

<xsl:key name="option" match="/lxml:data/lxml:options/lxml:option"

use="@name" />

<xsl:key name="variable" match="/lxml:data/lxml:variables/lxml:variable"

use="@name" />

<xsl:key name="weblet" match="/lxml:data/lxml:weblets/lxml:weblet"

use="@name" />

<xsl:key name="list" match="/lxml:data/lxml:lists/lxml:list" use="@name" />

<xsl:key name="jsonlist" match="/lxml:data/lxml:lists/lxml:json-list"

use="@name" />

<xsl:key name="tsmllist"

match="lxml:data/tsml:data[@used_by = 'LANSA_XHTML']/tsml:lists/tsml:list"

use="@name" />

<xsl:key name="tsmlcolumn"

match="lxml:data/tsml:data[@used_by = 'LANSA_XHTML']/tsml:lists/tsml:list/tsml:list-entries/tsml:entry/tsml:column"

use="concat(ancestor::tsml:list/@name,'_',@name)" />

<wd:definition>

<wd:group name="Utility Weblets" />

</wd:definition>

</xsl:transform>