Contents   Index   Previous   Next



Inspector window

 

In the inspector window all other properties for this element can be seen:

 

 

As you see, these are also very similar to the ones used for text elements.

 

Like for all other frame elements, you can also enter an Object name for this element.

 

The check box Uneditable prevents any changes in the element.

 

If you assigned an XML node to this element, the path is displayed in the inspector window in the field Datafield.

 

The field Format opens the editor again where you can also enter placeholders for a certain number format. For example: You would like to display in this frame the product prices of the products contained in the XML source file.

 

The prices all have different formats, some have no decimal places, and some have three. What you would like to see is a more uniform display. One of the permitted placeholders is the pound sign.

 

Original

Placeholder

Result

10589.1

#####.##

10589.1

10589.10

#####.##

10589.1

10589.99

#####.##

10590

 

The pound sign placeholder will not fill empty spaces with 0 or consider 0 at the beginning or the end of a sum as a number but it will round up or down sums to match the decimal places you have determined with the placeholders.

 

Another permitted placeholder is 0. This will fill decimal places with 0 to match the number of decimal places that you have determined.

 

Original

Placeholder

Result

10589.1

00000.00

10589.10

524

00000.00

00524.00

 

The fields Text before and Text after can also be used to have numbers labeled, e.g. "Sales Price" before the number and "in $" after the number.

 

Please note: It is necessary to insert a blank after the text in the field Text before and a blank in front of the text in the field Text after, otherwise there will be no space between Text and number.

 

If you know XPath, you can insert XPath statements before or after the number to enhance the navigation or filtering possibilities.

 

Inadvertently it can happen that entered content is not a number (NaN). Processing this content will lead to the faulty output 'NaN'. XSLfast provides the function Translate from/Translate to to display a customized abbreviation. Please note that the abbreviation should not exceed 2 characters because only 'N' and 'a' are available as different characters in the "NaN" string and more than 2 characters will not be considered.

 

Use the commands Inner Translate from and Inner Translate To also to substitute e.g. special characters, which were not offered in the other properties. Enter the special character you want to substitute by another in the field Inner translate from, the character you want to replace it with into the field Inner translate to.

 

Please note: It is possible to substitute several characters simultaneously. The characters are substituted in the exact order in which they have been entered into the fields. Character 1 in the field InnerTranslateFrom is substituted by character 1 in the field InnerTranslateTo and so on. It is also possible to substitute characters with a blank if you only enter a character into the field InnerTranslateFrom and leave the field InnerTranslateTo empty. This is only possible, however, at the end of the sequence because if the field InnerTranslateFrom finds no counterpart for the substitution in the same sequence place it will use the next character of the sequence.

 

All other properties are used in the same way as described in the chapter Text elements.