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.khabin...@millicom.com<mailto:.khabin...@millicom.com>
www.millicom.com<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.millicom.com%2F&data=02%7C01%7CMalcolm.Stewart%40microsoft.com%7C9338023699c2494d08be08d4ad12ce55%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636323743686702678&sdata=DxQ9dfL259rpdVZ9seOAcR6bvgxRobyIerOgvTgPc90%3D&reserved=0>

Reply via email to