Tuesday 17 May 2011

Count characters in a value in XML Tag in XML(BI Publisher)

I was looking for one of the funtion in XML for my requirement in RTF in order to display based on the length of the string.

Here goes that function, which is used to count the number of characters in a string in XML Publisher RTF.


string-length(XML TAG STRING)

Example of the usage in RTF template :

<?if:string-length(LIST_PRICE)> 5?> value <?end if?>

Here it returns the length of the string LIST_PRICE(XML tag used in the RTF template)

Hope this helps..


1 comment:

  1. Thanks! That helped me solve a problem that I'd previously spent several unsuccessful hours on.

    ReplyDelete