Property "XSL" <xslcode>

Top  Previous  Next

The XSL property is used for attaining XSL codes to elements. Enter the XSL code in the Code Editor, called by the [...] button across the property.

The XSL codes entered with this property will be put to the XSL page just before the auto generated code for the element.

Example:

Assume that an XSL property of a text element is set to:

 

  <xsl:variable name="abc" select="/products/item/name"/>

 

and the value property of the text element is set to:

$vof($abc)

 

the output will look like this:

 

  <xsl:variable name="abc" select="/products/item/name"/>

  <td width=".."><xsl:value-of select="$abc"=</td>

 

<cti:elmcode/> instruction

You can specify where exactly the auto generated element code should be nested within the XSL code using <cti:elmcode/> function.

 

Example:

 

  <xsl:for-each select="/products/item">

    <cti:elmcode/>

  </xsl:for-each>

 

<cti:omit-elmcode/> instruction

If you don't want that any code is generated for the element you can use this instruction to suppress the code generation.

Example:

 

  <cti:omit-elmcode/>

  <td>

    <xsl:for-each select="/products/item">

      <xsl:value-of select="Name"/>

    </xsl:for-each>

  </td>

 

Used In Elements

Page

Panel

Text

Rich Text

Image

Action

Condition

Graphic Text

Form

Edit Box

Edit Area

Button

Check Box

Radio Button

Combo Box

List Box

File Box