0

I am new to xslt.I am trying to transform xml to csv using xslt.The csv file is seperated by SOH(ctrl a) character.I know that character is not allowed in xml.I m just trying to output text.Is there any way i can add the SOH character in xslt in the version 1.0.

x_coder
  • 71
  • 1
  • 7
  • See if this helps: http://stackoverflow.com/questions/2243823/xsl-include-some-ascii-control-chars-when-method-text – michael.hor257k Apr 12 '17 at 08:08
  • in my scenario,there is no link with dot net framework.i am using xsltproc in unix.the source xml file i am getting is of version 1.0 – x_coder Apr 12 '17 at 09:17

1 Answers1

0

i am using xsltproc

Unfortunately, the libxslt processor does not support XML 1.1., so this is not possible to accomplish with XSLT alone. I believe your only option is to output a placeholder string, then process the result with another application to replace the string with the control character.

michael.hor257k
  • 113,275
  • 6
  • 33
  • 51