EENew02 Posted November 27, 2006 Share Posted November 27, 2006 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 More sharing options...
boen_robot Posted November 27, 2006 Share Posted November 27, 2006 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now