Property "For Whitespace in Dynamic Value" <wsidv>

Top  Previous  Next

If the value property of a text element is defined to be dynamic using a $vof() macro, for example $vof(Description), and the XML Node "Description" contains spaces and new line characters, these are eliminated by the HTML parser and the formatting of the text on the page may not be as expected.

Example:

 Dear John,

 I would like to list once more the issues that we agreed on ...

As you expect the text in the XML node is formatted on the page as above, you will get the following.

Dear John, I would like to list once more the issues that we agreed on ..

To avoid this, you can assign a value to this property and force the Application Studio to employ special XSL templates to preserve the white spaces existing in the XML node that the value bind to.

Valid Options:

1. Build Space Chars

Use this option to convert the spaces existing in the XML to &#xa0; to avoid their elimination by the parser.

2. Build Break Tags and Space Chars

Use this option to convert the spaces to &#xa0; and the new line characters to <br> tags.

 
Please note that this property is effective only in dynamic pages.