How to remove an empty line left behind by an <xsl: /> tag from transformed file from .xsl file

28 Views Asked by At

I am using an .xsl file to generate a .vb file and am using multiple if, choose, etc xsl tags in it.

But what is happening is the xsl tags are leaving behind blank lines after transformation in the result and this is not desired. How do I remove them?

Refer below .xsl file code -

 Dim Result as String = ""
    <xsl:for-each select="/xyz/Process">
          <xsl:if test="position()=1">
          Select Case processId</xsl:if>

So, here the result .vb file has an empty line in between.

Dim Result as String = ""
    
          Select Case processId

Tried adding xsl:strip-space in the beginning and that did not work out for me. Also tried adding <xsl:output method="text"/>

0

There are 0 best solutions below