Hello,
Good news on my end.
I was running the following 3 lines in the BaseX Editor:
let $doc := 'd:\Temp\CDW\IFRS\InforSunSystems\id0001_TZ20180200_IFRS15_SunSystems_3TZ002.xml'
let $stylesheet := 'd:\Temp\CDW\IFRS\InforSunSystems\IFRS15_SunSystemsOut.xslt'
return xslt:transform($doc, $stylesheet)
And getting the following error message:
“” (Line 1): Content is not allowed in prolog.
My XSLT stylesheet starts as follows:
<?xml version="1.0"?>
<xsl:stylesheet
version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xpath-default-namespace="http://www.millicom.com"
xmlns:functx="http://www.functx.com" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xsl:output
method="text" encoding="UTF-8"/>
<xsl:strip-space
elements="*"/>
Based on Martin’s input, I changed the last line to:
return xslt:transform-text($doc, $stylesheet)
And everything is working.
Thanks a lot!
Regards,
Yitzhak Khabinsky
Technical Services Lead
Millicom International Services LLC
396 Alhambra Circle, Suite 1100
Coral Gables, FL 33134
Skype4B: +1 (305) 445-4172
Tel: (954) 684-8673
yitzhak.khabinsky@millicom.com