cancel
Showing results for 
Search instead for 
Did you mean: 

XSLT in shared memory and carriage return

olivier_thiry
Participant
0 Kudos

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>&#10;</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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Olivier,

I tried you scenario and I don't think that it is possible to save the carriage return character entity i.e. "&#10;" 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 ''&#10;" 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.