Re: Fwd: Saxon processor for XSLT 3.0
Eduard Drenth <edrenth-jSCd/l0Ice/P1VsnYL26Y2ZHpeb/A1Y/@public.gmane.org> Sat, 25 Sep 2021 05:09:09 +0000
| Newsgroups | gmane.text.xml.saxon.help |
|---|---|
| Message-ID | <[email protected]> |
--===============1046287753994876771== Content-Language: en-US Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="=-2tXX8EoQgokr/wzyEc42" --=-2tXX8EoQgokr/wzyEc42 Content-Type: multipart/alternative; boundary="=-eaWAjdo7+Bwr7+38pS3b" --=-eaWAjdo7+Bwr7+38pS3b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable You'll have to use <xsl:value-of to print the version On Thu, 2021-09-23 at 10:43 +0530, VISHNU SINGH wrote: > Greetings for the day!Please suggest for the below query! >=20 > ---------- 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]> >=20 >=20 > Hi, > I want to use the Saxon processor for XSLT 3.0. For this I > have downloaded the SaxonHE10-6J package. >=20 > I am simply trying to print a message using below xslt 3.0 >=20 >=20 >=20 >=20 >=20 >=20 >=20 > <?xml version=3D"1.0" encoding=3D"UTF-8"?> >=20 > <xsl:stylesheet xmlns:xsl=3D"http://www.w3.org/1999/XSL/Transform" > version=3D"3.0"> >=20 > <xsl:variable name=3D"version" select=3D"3.0"/> >=20 > <xsl:template match=3D"/"> >=20 > <xsl:message>this is test xslt version > {$version}</xsl:message> >=20 > </xsl:template> >=20 > </xsl:stylesheet> > And running it from the command linejava -jar saxon-he-10.6.jar > -s:test.xml -xsl:test.xsl -o:output.xml >=20 > 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 >=20 > Please suggest. >=20 > Kind regards, > Vishnu > --=20 > Vishnu Singh | http://marklogicgd.blogspot.com/ >=20 >=20 >=20 >=20 >=20 > _______________________________________________saxon-help mailing > list archived at http://saxon.markmail.org/ > [email protected] > https://lists.sourceforge.net/lists/listinfo/saxon-help=20 --=20 Eduard Drenth, Software Architekt edrenth-jSCd/l0Ice/P1VsnYL26Y2ZHpeb/A1Y/@public.gmane.org Doelestrjitte 8 8911 DX Ljouwert +31 58 234 30 47 +31 62 094 34 28 (priv=C3=A9) skype: eduarddrenth https://github.com/eduarddrenth frisian.eu gpg: https://pgp.surfnet.nl/pks/lookup?search=3Deduarddrenth Op freed bin ik th=C3=BAs/wurkje ik minder --=-eaWAjdo7+Bwr7+38pS3b Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable <html dir=3D"ltr"><head><meta http-equiv=3D"Content-Type" content=3D"text/h= tml; charset=3Dutf-8"></head><body style=3D"text-align:left; direction:ltr;= "><div>You'll have to use <xsl:value-of to print the version</div><div><= br></div><div>On Thu, 2021-09-23 at 10:43 +0530, VISHNU SINGH wrote:</div><= blockquote type=3D"cite" style=3D"margin:0 0 0 .8ex; border-left:2px #729fc= f solid;padding-left:1ex"><div dir=3D"ltr"><br>Greetings for the day!<= div>Please suggest for the below query!</div><div><br><div class=3D"gmail_q= uote"><div dir=3D"ltr" class=3D"gmail_attr">---------- Forwarded message --= -------<br>From: <strong class=3D"gmail_sendername" dir=3D"auto">VISHNU SIN= GH</strong> <span dir=3D"auto"><<a href=3D"mailto:[email protected]= om">[email protected]</a>></span><br>Date: Thu, 23 Sept 2021 at 1= 0:40<br>Subject: Saxon processor for XSLT 3.0<br>To: <a href=3D"http://xsl-= list-lists.mulberrytech.co">xsl-list-lists.mulberrytech.co</a> <<a href= =3D"mailto:[email protected]">[email protected]= </a>><br></div><br><br><div dir=3D"ltr">Hi,<div><br></div><div>I want to= use the Saxon processor for XSLT 3.0. For this I have downloaded the&= nbsp;<b>SaxonHE10-6J </b>package.</div><div><br></div><div>I am simpl= y 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)"><?xml= version=3D"1.0" encoding=3D"UTF-8"?></span><span style=3D"color:rgb(0,0= ,0)"><br> </span><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)">"<a href=3D"http:= //www.w3.org/1999/XSL/Transform" target=3D"_blank">http://www.w3.org/1999/X= SL/Transform</a>"</span><span style=3D"color:rgb(245,132,76)"> version</spa= n><span style=3D"color:rgb(255,128,64)">=3D</span><span style=3D"color:rgb(= 153,51,0)">"3.0"</span><span style=3D"color:rgb(0,0,150)">></span><span = style=3D"color:rgb(0,0,0)"><br> <span> </span></span><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)">"version"</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)">"</span><span style=3D"color:rgb(50,50,= 150)">3.0</span><span style=3D"color:rgb(153,51,0)">"</span><span style=3D"= color:rgb(0,0,150)">/></span><span style=3D"color:rgb(0,0,0)"><br> <span> </span></span><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)">"</span><span style=3D"color:rgb(120,120= ,0)">/</span><span style=3D"color:rgb(153,51,0)">"</span><span style=3D"col= or:rgb(0,0,150)">></span><span style=3D"color:rgb(0,0,0)"><br> <span> </span></span><xsl:message><span st= yle=3D"color:rgb(0,0,0)">this is test xslt version {$version}</span></xs= l:message><span style=3D"color:rgb(0,0,0)"><br> <span> </span></span></xsl:template><span style=3D"color= :rgb(0,0,0)"><br> </span></xsl:stylesheet></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 the </div><div>"this is test xslt= version {$version}"</div><div><br></div><div>It is not evaluating the= variable 'version'.</div><div><br></div><div>Could someone please suggest = what i am doing wrong?</div>OR</div><div>there is different saxon jar = that I should use for xslt 3.0</div><div><br></div><div>Please suggest.</di= v><div><br></div><div>Kind regards,</div><div>Vishnu</div><div>-- <br>= <div dir=3D"ltr" data-smartmail=3D"gmail_signature"><div dir=3D"ltr"><div>V= ishnu Singh | <a href=3D"http://marklogicgd.blogspot.in/" target=3D"_b= lank">http://marklogicgd.blogspot.com/</a></div><div><br></div></div></div>= </div></div> </div><br clear=3D"all"><div><br></div><pre>_______________________________= ________________</pre><pre>saxon-help mailing list archived at </pre><a hre= f=3D"http://saxon.markmail.org/"><pre>http://saxon.markmail.org/</pre></a><= pre><br></pre><a href=3D"mailto:[email protected]"><pre>saxo= [email protected]</pre></a><pre><br></pre><a href=3D"https://lis= ts.sourceforge.net/lists/listinfo/saxon-help"><pre>https://lists.sourceforg= e.net/lists/listinfo/saxon-help</pre></a><pre> </pre></div></div></blockquo= te><div><span><pre>-- <br></pre><div style=3D"width: 71ch;">Eduard Drenth, = Software Architekt</div><div style=3D"width: 71ch;"><br></div><div style=3D= "width: 71ch;"><a href=3D"mailto:edrenth-jSCd/l0Ice/P1VsnYL26Y2ZHpeb/A1Y/@public.gmane.org">edrenth@fryske-= akademy.nl</a></div><div style=3D"width: 71ch;"><br></div><div style=3D"wid= th: 71ch;">Doelestrjitte 8</div><div style=3D"width: 71ch;">8911 DX L= jouwert</div><div style=3D"width: 71ch;">+31 58 234 30 47</div><div style= =3D"width: 71ch;">+31 62 094 34 28 (priv=C3=A9)</div><div style=3D"width: 7= 1ch;"><br></div><div style=3D"width: 71ch;">skype: eduarddrenth</div><div s= tyle=3D"width: 71ch;"><a href=3D"https://github.com/eduarddrenth">https://g= ithub.com/eduarddrenth</a></div><div style=3D"width: 71ch;">frisian.eu</div= ><div style=3D"width: 71ch;">gpg: <a href=3D"https://pgp.surfnet.nl/pk= s/lookup?search=3Deduarddrenth">https://pgp.surfnet.nl/pks/lookup?search=3D= eduarddrenth</a><br><br></div><div style=3D"width: 71ch;"><br></div><div st= yle=3D"width: 71ch;">Op freed bin ik th=C3=BAs/wurkje ik minder</div><div s= tyle=3D"width: 71ch;"><br></div><div style=3D"width: 71ch;"><br></div><div = style=3D"width: 71ch;"><br></div></span></div></body></html> --=-eaWAjdo7+Bwr7+38pS3b-- --=-2tXX8EoQgokr/wzyEc42 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEJgukPkdqI5csS0v3Bl74Kh4CzEMFAmFOrvMACgkQBl74Kh4C zEM7mwf/SSx0jgZ/0fc2I/II9OHvvq7jN9HUU+Y8ZnDK+6PeAjcUov3LVIChJpkT assbE2xiz1xzd5ZpjesX+3Shm0Ey96Cm4mh9wkL/j81Rmz9KLmBaRqN2/z2Gbwa5 sLp5yURA2gxQUJMX5QAg9KCF6qqr35YLnYKSYheK4Q5vrLdLSBc2tdDKvjBwt4Kx a+nyAHTHiCicBMUx8kmK3waBLIiYIWPFI5IYf6xsSVQAF0DcnCCScZ5DRRPB2/e4 8Ojs3t8fFjt4LPQ5oxu5nRfqhhIfkxRE2MU44x+tD+rrcj1Os7mi4Rfr5baBFiS2 NXw/hdJ7vX/qdmiHUacNcfhIQ0pgqg== =aHpX -----END PGP SIGNATURE----- --=-2tXX8EoQgokr/wzyEc42-- --===============1046287753994876771== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============1046287753994876771== 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 --===============1046287753994876771==--