Re: Fwd: Saxon processor for XSLT 3.0
Ruvim Pinka <[email protected]> Thu, 30 Sep 2021 18:51:30 +0300
| Newsgroups | gmane.text.xml.saxon.help |
|---|---|
| Message-ID | <CAPzxjNNJSLhvGo+r+EsvSdT0TQFpexgNuKH3KBJRCF9huAAHsw@mail.gmail.com> |
--===============3552750646519862721== Content-Type: multipart/alternative; boundary="00000000000030cffe05cd386d40" --00000000000030cffe05cd386d40 Content-Type: text/plain; charset="UTF-8" Hi! According to the specification <https://www.w3.org/TR/xslt-30/#text-value-templates>, you have to add attribute expad-text="true" into some ancestor-of-self of xsl:message. On Thu, 23 Sept 2021 at 08:14, 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 > --00000000000030cffe05cd386d40 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>Hi! According to the <a href=3D"https://www.w3.org/TR= /xslt-30/#text-value-templates">specification</a>, you have to add attribut= e <span style=3D"font-family:monospace">expad-text=3D"true" </spa= n>into some ancestor-of-self of xsl:message.</div><div><br></div><div><div = class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Thu, 23 Sept= 2021 at 08:14, VISHNU SINGH <<a href=3D"mailto:[email protected]= ">[email protected]</a>> wrote:<br></div><blockquote class=3D"gma= il_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,2= 04,204);padding-left:1ex"><div dir=3D"ltr"><br>Greetings for the=C2=A0day!<= 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: <b class=3D"gmail_sendername" dir=3D"auto">VISHNU SINGH</b= > <span dir=3D"auto"><<a href=3D"mailto:[email protected]" target= =3D"_blank">[email protected]</a>></span><br>Date: Thu, 23 Sept 2= 021 at 10:40<br>Subject: Saxon processor for XSLT 3.0<br>To: <a href=3D"htt= p://xsl-list-lists.mulberrytech.co" target=3D"_blank">xsl-list-lists.mulber= rytech.co</a> <<a href=3D"mailto:[email protected]" target= =3D"_blank">[email protected]</a>><br></div><br><br><div d= ir=3D"ltr">Hi,<div><br></div><div>I want to use the Saxon processor for XSL= T 3.0. For this I have=C2=A0downloaded the=C2=A0<b>SaxonHE10-6J=C2=A0 </b>p= ackage.</div><div><br></div><div>I am simply trying to print a message usin= g 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 st= yle=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/1= 999/XSL/Transform</a>"</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)">"3.0"</span><span style=3D"color:rgb(0,0,150= )">></span><span style=3D"color:rgb(0,0,0)"><br> <span>=C2=A0 =C2=A0 </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"c= olor: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:rg= b(0,0,0)"><br> <span>=C2=A0 =C2=A0 </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(12= 0,120,0)">/</span><span style=3D"color:rgb(153,51,0)">"</span><span st= yle=3D"color:rgb(0,0,150)">></span><span style=3D"color:rgb(0,0,0)"><br> <span>=C2=A0 =C2=A0 =C2=A0 =C2=A0 </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>=C2=A0 =C2=A0 </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=C2=A0the=C2=A0</div><div>"this is test= xslt version {$version}"</div><div><br></div><div>It is not evaluatin= g=C2=A0the variable 'version'.</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></div></div></div></blockquote></div><br></div></div> --00000000000030cffe05cd386d40-- --===============3552750646519862721== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============3552750646519862721== 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 --===============3552750646519862721==--