Jump to content

How to keep empty space when transform the output!!!


EENew02

Recommended Posts

Hi,I have an input file example:<ordernumber><ordernumber>and I want my output to come out as below with a blank space in the middle of the tag:<ordernumber> <ordernumber>So basically in my xslt I want to check my input element, if ordernumber element in my input file is empty then put a blank space in my output. I try so many different ways and still couldn't get it to work. Can someone please help me. I want my output to be xml not html.I tried to put this in my xslt but doesn't work:<ordernumber>xsl:text disable-output-escaping="yes"> </xsl:text></ordernumber>or <ordernumber> <ordernumber>Please HELP!!!!!! :)

Link to comment
Share on other sites

With or without disable-output-escaping, the<ordernumber><xsl:text> </xsl:text></ordernumber>Should have worked. Oh well, try putting<ordernumber xml:space="preserve"> <ordernumber>in the XSLT.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...