on 02-14-2014 2:19 PM
Hello,
I have a requirement to create a flat file (text) from query. I achieved this using XSLT, that I stored in a shared memory to have more flexibility.
Problem is that I need to add carriage return after each record.
I did this using this tag : <xsl:text> </xsl:text>
Which is fine if I run my XSLT in a XSLT editor to test. But when pasting the value into shared memory in XMII, those special characters are simply interpreted, so my XSLT become :
<xsl:text>
</xsl:text>
And when I run it, guess what, no carriage return... Any help on how to force a carriage return in this case ?
I already set the output method as text, but doesn't help (I'm not really a XSLT expert I have to admit).
In the meantime, I will try with storing the xslt into a file, but I really prefer a shared memory for the flexibility....
Thanks
Regards
Olivier
Hi Olivier,
I tried you scenario and I don't think that it is possible to save the carriage return character entity i.e. " " in the xml defined in shared memory.
The reason for this is that MII parses the xml first and then saves it. So if you put a '' " in the xml it will be replaced while parsing and a new line would be created.
Better you save your xslt in a file and then use it.
Regards,
Rohit Negi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
9 | |
7 | |
3 | |
2 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.