Re: Saxon processor for XSLT 3.0

VISHNU SINGH <[email protected]> Mon, 4 Oct 2021 16:51:25 +0530
Newsgroups gmane.text.xml.saxon.help
Message-ID <CALQn0WCCQb-v9JJ1eM4PDHspM4SwKb74bVa5FsR18jWFrRSFjw@mail.gmail.com>
--===============5540278788686857228==
Content-Type: multipart/alternative; boundary="00000000000033478205cd851f9d"

--00000000000033478205cd851f9d
Content-Type: text/plain; charset="UTF-8"

Yes, Thanks for answering my question! It's working as suggested above!

On Thu, 30 Sept 2021 at 22:09, Michael Kay <mike-JkSD5nQpfvpWk0Htik3J/[email protected]> wrote:

> I'm sorry, I replied to this earlier but my reply only made it as far as
> my drafts folder.
>
> As Eduard points out (with a misspelling), to use text value templates in
> XSLT 3.0 you need to set expand-text="yes" at some level - I usually put it
> on the xsl:stylesheet element itself. The reason for this is backwards
> compatibility.
>
> Michael Kay
> Saxonica
>
> On 23 Sep 2021, at 06:13, VISHNU SINGH <[email protected]> wrote:
>
>
> 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/>
>
> _______________________________________________
> saxon-help mailing list archived at http://saxon.markmail.org/
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/saxon-help
>
>
> _______________________________________________
> saxon-help mailing list archived at http://saxon.markmail.org/
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/saxon-help



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

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

<div dir=3D"ltr">Yes, Thanks for answering my question! It&#39;s working as=
 suggested above!<br></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" =
class=3D"gmail_attr">On Thu, 30 Sept 2021 at 22:09, Michael Kay &lt;<a href=
=3D"mailto:mike-JkSD5nQpfvpWk0Htik3J/[email protected]">mike-JkSD5nQpfvpWk0Htik3J/[email protected]</a>&gt; wrote:<br></div><bl=
ockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-lef=
t:1px solid rgb(204,204,204);padding-left:1ex"><div style=3D"overflow-wrap:=
 break-word;">I&#39;m sorry, I replied to this earlier but my reply only ma=
de it as far as my drafts folder.<div><br></div><div>As Eduard points out (=
with a misspelling), to use text value templates in XSLT 3.0 you need to se=
t expand-text=3D&quot;yes&quot; at some level - I usually put it on the xsl=
:stylesheet element itself. The reason for this is backwards compatibility.=
</div><div><br></div><div>Michael Kay</div><div>Saxonica<br><div><br><block=
quote type=3D"cite"><div>On 23 Sep 2021, at 06:13, VISHNU SINGH &lt;<a href=
=3D"mailto:[email protected]" target=3D"_blank">svishnu.singh4@gmail=
.com</a>&gt; wrote:</div><br><div><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" class=3D"gmail_attr">---------- Forwarded me=
ssage ---------<br>From: <strong class=3D"gmail_sendername" dir=3D"auto">VI=
SHNU SINGH</strong> <span dir=3D"auto">&lt;<a href=3D"mailto:svishnu.singh4=
@gmail.com" target=3D"_blank">[email protected]</a>&gt;</span><br>Da=
te: Thu, 23 Sept 2021 at 10:40<br>Subject: Saxon processor for XSLT 3.0<br>=
To: <a href=3D"http://xsl-list-lists.mulberrytech.co/" target=3D"_blank">xs=
l-list-lists.mulberrytech.co</a> &lt;<a href=3D"mailto:[email protected]=
rrytech.com" target=3D"_blank">[email protected]</a>&gt;<br><=
/div><br><br><div dir=3D"ltr">Hi,<div><br></div><div>I want to use the Saxo=
n processor for XSLT 3.0. For this I have=C2=A0downloaded the=C2=A0<b>Saxon=
HE10-6J=C2=A0 </b>package.</div><div><br></div><div>I am simply trying to p=
rint a message using below xslt 3.0</div><div><br></div><div><div style=3D"=
margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-=
stretch:normal;font-size:12px;line-height:normal;font-family:Helvetica;colo=
r: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><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><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><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><br>
<span>=C2=A0 =C2=A0 =C2=A0 =C2=A0 </span></span>&lt;xsl:message&gt;<span>th=
is is test xslt version {$version}</span>&lt;/xsl:message&gt;<span><br>
<span>=C2=A0 =C2=A0 </span></span>&lt;/xsl:template&gt;<span><br>
</span>&lt;/xsl:stylesheet&gt;</div><div style=3D"margin:0px;font-variant-n=
umeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:=
12px;line-height:normal;font-family:Helvetica;color:rgb(0,90,180)"><br></di=
v><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 as an output it is just printing=C2=A0the=C2=A0</div><div>&quot;this i=
s test xslt version {$version}&quot;</div><div><br></div><div>It is not eva=
luating=C2=A0the variable &#39;version&#39;.</div><div><br></div><div>Could=
 someone please suggest what i am doing=C2=A0wrong?</div>OR</div><div>there=
 is different saxon jar that I should use for xslt 3.0</div><div><br></div>=
<div>Please suggest.</div><div><br></div><div>Kind=C2=A0regards,</div><div>=
Vishnu</div><div>-- <br><div dir=3D"ltr"><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"><div dir=3D"=
ltr"><div>Vishnu Singh |=C2=A0<a href=3D"http://marklogicgd.blogspot.in/" t=
arget=3D"_blank">http://marklogicgd.blogspot.com/</a></div><div><br></div><=
/div></div></div></div>
_______________________________________________<br>saxon-help mailing list =
archived at <a href=3D"http://saxon.markmail.org/" target=3D"_blank">http:/=
/saxon.markmail.org/</a><br><a href=3D"mailto:[email protected]=
net" target=3D"_blank">[email protected]</a><br><a href=3D"h=
ttps://lists.sourceforge.net/lists/listinfo/saxon-help" target=3D"_blank">h=
ttps://lists.sourceforge.net/lists/listinfo/saxon-help</a> </div></blockquo=
te></div><br></div></div>_______________________________________________<br=
>
saxon-help mailing list archived at <a href=3D"http://saxon.markmail.org/" =
rel=3D"noreferrer" target=3D"_blank">http://saxon.markmail.org/</a><br>
<a href=3D"mailto:[email protected]" target=3D"_blank">saxon=
[email protected]</a><br>
<a href=3D"https://lists.sourceforge.net/lists/listinfo/saxon-help" rel=3D"=
noreferrer" target=3D"_blank">https://lists.sourceforge.net/lists/listinfo/=
saxon-help</a> </blockquote></div><br clear=3D"all"><div><br></div>-- <br><=
div dir=3D"ltr" class=3D"gmail_signature"><div dir=3D"ltr"><div>Vishnu Sing=
h |=C2=A0<a href=3D"http://marklogicgd.blogspot.in/" target=3D"_blank">http=
://marklogicgd.blogspot.com/</a></div><div><br></div></div></div>

--00000000000033478205cd851f9d--


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


--===============5540278788686857228==
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 
--===============5540278788686857228==--