Fwd: Saxon processor for XSLT 3.0

VISHNU SINGH <[email protected]> Thu, 23 Sep 2021 10:43:20 +0530
Newsgroups gmane.text.xml.saxon.help
Message-ID <CALQn0WAOvcxAaj8XCNk_MCpE7fO8Rz1E+7oAT_pe+CGxBU_5pQ@mail.gmail.com>
--===============5296100223344805232==
Content-Type: multipart/alternative; boundary="0000000000009dc39f05cca2b2e5"

--0000000000009dc39f05cca2b2e5
Content-Type: text/plain; charset="UTF-8"

Greetings for the day!
Please suggest for the below query!

---------- Forwarded message ---------
From: VISHNU SINGH <[email protected]>
Date: Thu, 23 Sept 2021 at 10:40
Subject: Saxon processor for XSLT 3.0
To: xsl-list-lists.mulberrytech.co <[email protected]>


Hi,

I want to use the Saxon processor for XSLT 3.0. For this I have downloaded
the *SaxonHE10-6J  *package.

I am simply trying to print a message using below xslt 3.0

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version=
"3.0">
    <xsl:variable name="version" select="3.0"/>
    <xsl:template match="/">
        <xsl:message>this is test xslt version {$version}</xsl:message>
    </xsl:template>
</xsl:stylesheet>


And running it from the command line
java -jar saxon-he-10.6.jar -s:test.xml -xsl:test.xsl -o:output.xml

and as an output it is just printing the
"this is test xslt version {$version}"

It is not evaluating the variable 'version'.

Could someone please suggest what i am doing wrong?
OR
there is different saxon jar that I should use for xslt 3.0

Please suggest.

Kind regards,
Vishnu
-- 
Vishnu Singh | http://marklogicgd.blogspot.com/
<http://marklogicgd.blogspot.in/>



-- 
Vishnu Singh | http://marklogicgd.blogspot.com/
<http://marklogicgd.blogspot.in/>

--0000000000009dc39f05cca2b2e5
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br>Greetings for the=C2=A0day!<div>Please suggest for the=
 below query!</div><div><br><div class=3D"gmail_quote"><div dir=3D"ltr" cla=
ss=3D"gmail_attr">---------- Forwarded message ---------<br>From: <strong c=
lass=3D"gmail_sendername" dir=3D"auto">VISHNU SINGH</strong> <span dir=3D"a=
uto">&lt;<a href=3D"mailto:[email protected]">[email protected]=
om</a>&gt;</span><br>Date: Thu, 23 Sept 2021 at 10:40<br>Subject: Saxon pro=
cessor for XSLT 3.0<br>To: <a href=3D"http://xsl-list-lists.mulberrytech.co=
">xsl-list-lists.mulberrytech.co</a> &lt;<a href=3D"mailto:[email protected]=
ulberrytech.com">[email protected]</a>&gt;<br></div><br><br><=
div dir=3D"ltr">Hi,<div><br></div><div>I want to use the Saxon processor fo=
r XSLT 3.0. For this I have=C2=A0downloaded the=C2=A0<b>SaxonHE10-6J=C2=A0 =
</b>package.</div><div><br></div><div>I am simply trying to print a message=
 using below xslt 3.0</div><div><br></div><div>





<p style=3D"margin:0px;font-variant-numeric:normal;font-variant-east-asian:=
normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:He=
lvetica;color:rgb(0,90,180)"><span style=3D"color:rgb(139,38,201)">&lt;?xml=
 version=3D&quot;1.0&quot; encoding=3D&quot;UTF-8&quot;?&gt;</span><span st=
yle=3D"color:rgb(0,0,0)"><br>
</span>&lt;xsl:stylesheet<span style=3D"color:rgb(245,132,76)"> </span><spa=
n style=3D"color:rgb(0,153,204)">xmlns:xsl</span><span style=3D"color:rgb(2=
55,128,64)">=3D</span><span style=3D"color:rgb(153,51,0)">&quot;<a href=3D"=
http://www.w3.org/1999/XSL/Transform" target=3D"_blank">http://www.w3.org/1=
999/XSL/Transform</a>&quot;</span><span style=3D"color:rgb(245,132,76)"> ve=
rsion</span><span style=3D"color:rgb(255,128,64)">=3D</span><span style=3D"=
color:rgb(153,51,0)">&quot;3.0&quot;</span><span style=3D"color:rgb(0,0,150=
)">&gt;</span><span style=3D"color:rgb(0,0,0)"><br>
<span>=C2=A0 =C2=A0 </span></span>&lt;xsl:variable<span style=3D"color:rgb(=
245,132,76)"> name</span><span style=3D"color:rgb(255,128,64)">=3D</span><s=
pan style=3D"color:rgb(153,51,0)">&quot;version&quot;</span><span style=3D"=
color:rgb(245,132,76)"> select</span><span style=3D"color:rgb(255,128,64)">=
=3D</span><span style=3D"color:rgb(153,51,0)">&quot;</span><span style=3D"c=
olor:rgb(50,50,150)">3.0</span><span style=3D"color:rgb(153,51,0)">&quot;</=
span><span style=3D"color:rgb(0,0,150)">/&gt;</span><span style=3D"color:rg=
b(0,0,0)"><br>
<span>=C2=A0 =C2=A0 </span></span>&lt;xsl:template<span style=3D"color:rgb(=
245,132,76)"> match</span><span style=3D"color:rgb(255,128,64)">=3D</span><=
span style=3D"color:rgb(153,51,0)">&quot;</span><span style=3D"color:rgb(12=
0,120,0)">/</span><span style=3D"color:rgb(153,51,0)">&quot;</span><span st=
yle=3D"color:rgb(0,0,150)">&gt;</span><span style=3D"color:rgb(0,0,0)"><br>
<span>=C2=A0 =C2=A0 =C2=A0 =C2=A0 </span></span>&lt;xsl:message&gt;<span st=
yle=3D"color:rgb(0,0,0)">this is test xslt version {$version}</span>&lt;/xs=
l:message&gt;<span style=3D"color:rgb(0,0,0)"><br>
<span>=C2=A0 =C2=A0 </span></span>&lt;/xsl:template&gt;<span style=3D"color=
:rgb(0,0,0)"><br>
</span>&lt;/xsl:stylesheet&gt;</p><p style=3D"margin:0px;font-variant-numer=
ic:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px=
;line-height:normal;font-family:Helvetica;color:rgb(0,90,180)"><br></p><div=
>And running it from the command line</div><div>java -jar saxon-he-10.6.jar=
 -s:test.xml -xsl:test.xsl -o:output.xml<br></div><div><br></div><div>and a=
s an output it is just printing=C2=A0the=C2=A0</div><div>&quot;this is test=
 xslt version {$version}&quot;</div><div><br></div><div>It is not evaluatin=
g=C2=A0the variable &#39;version&#39;.</div><div><br></div><div>Could someo=
ne please suggest what i am doing=C2=A0wrong?</div>OR</div><div>there is di=
fferent saxon jar that I should use for xslt 3.0</div><div><br></div><div>P=
lease suggest.</div><div><br></div><div>Kind=C2=A0regards,</div><div>Vishnu=
</div><div>-- <br><div dir=3D"ltr" data-smartmail=3D"gmail_signature"><div =
dir=3D"ltr"><div>Vishnu Singh |=C2=A0<a href=3D"http://marklogicgd.blogspot=
.in/" target=3D"_blank">http://marklogicgd.blogspot.com/</a></div><div><br>=
</div></div></div></div></div>
</div><br clear=3D"all"><div><br></div>-- <br><div dir=3D"ltr" class=3D"gma=
il_signature" data-smartmail=3D"gmail_signature"><div dir=3D"ltr"><div>Vish=
nu Singh |=C2=A0<a href=3D"http://marklogicgd.blogspot.in/" target=3D"_blan=
k">http://marklogicgd.blogspot.com/</a></div><div><br></div></div></div></d=
iv></div>

--0000000000009dc39f05cca2b2e5--


--===============5296100223344805232==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============5296100223344805232==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[email protected]
https://lists.sourceforge.net/lists/listinfo/saxon-help 
--===============5296100223344805232==--