Subject: Re: [xsl] How to output the characters denoted by the regex \p{P} From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Fri, 28 Feb 2025 13:39:44 -0000 |
On 28/02/2025 14:00, Roger L Costello costello@xxxxxxxxx wrote: > Using Martin's brute force XSLT program: > > > > Number of punctuation symbols = 632 > Example fiddle <https://martin-honnen.github.io/cheerpj3-saxonhe12-fiddle/?code=%3C%3Fxml+ve rsion%3D%221.0%22+encoding%3D%22utf-8%22%3F%3E%0A%3Cxsl%3Astylesheet+xmlns%3A xsl%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2FXSL%2FTransform%22%0A++version%3D%2 23.0%22%0A++xmlns%3Axs%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%22%0A+ +exclude-result-prefixes%3D%22%23all%22%0A++expand-text%3D%22yes%22%3E%0A%0A+ +%3Cxsl%3Aoutput+method%3D%22html%22+indent%3D%22yes%22+html-version%3D%225%2 2%2F%3E%0A%0A++%3Cxsl%3Atemplate+match%3D%22%2F%22+name%3D%22xsl%3Ainitial-te mplate%22%3E%0A++++%3Chtml%3E%0A++++++%3Chead%3E%0A++++++++%3Ctitle%3ETest+of +punctuation+chars%3C%2Ftitle%3E%0A++++++++%3Cstyle+xsl%3Aexpand-text%3D%22no %22%3E%0A++++++++++tr+td%3Afirst-child%2C+tr+td%3Anth-child%282%29+%7B+text-a lign%3A+right%3B+%7D%0A++++++++++tr+td%3Afirst-child%3A%3Abefore+%7B+content+ %3A+counter%28row%29%3B+%7D%0A++++++++++tr+td%3Anth-child%283%29+%7B+text-ali gn%3A+center%3B+%7D%0A++++++++++tbody+%7B%0A++++++++++++counter-reset%3A+row% 3B%0A++++++++++%7D%0A++++++++++tbody+tr+%7B+%0A++++++++++++counter-increment% 3A+row%3B%0A++++++++++%7D%0A++++++++++table+%7B%0A++++++++++++empty-cells%3A+ show%3B%0A++++++++++%7D%0A++++++++%3C%2Fstyle%3E%0A++++++%3C%2Fhead%3E%0A++++ ++%3Cbody%3E%0A++++++++%3Ctable%3E%0A++++++++++%3Cthead%3E%0A++++++++++++%3Ct r%3E%0A++++++++++++++%3Cth%3EPunctuation+character+no.%3C%2Fth%3E%0A+++++++++ +++++%3Cth%3EUnicode%3C%2Fth%3E%0A++++++++++++++%3Cth%3ECharacter%3C%2Fth%3E% 0A++++++++++++%3C%2Ftr%3E%0A++++++++++%3C%2Fthead%3E%0A++++++++++%3Ctbody%3E% 0A++++++++++++%3Cxsl%3Afor-each+select%3D%221+to+1114111%22%3E%0A++++++++++++ ++%3Cxsl%3Atry%3E%0A++++++++++++++++%3Cxsl%3Avariable+name%3D%22char%22+selec t%3D%22codepoints-to-string%28.%29%22%2F%3E%0A++++++++++++++++%3Cxsl%3Aif+tes t%3D%22matches%28%24char%2C+%27%5Cp%7BP%7D%27%29%22%3E%0A++++++++++++++++++%3 Ctr%3E%0A++++++++++++++++++++%3Ctd%3E%3C%2Ftd%3E%0A++++++++++++++++++++%3Ctd% 3E%7B.%7D%3C%2Ftd%3E%0A++++++++++++++++++++%3Ctd%3E%7B%24char%7D%3C%2Ftd%3E%0 A++++++++++++++++++%3C%2Ftr%3E++++++++++++++++++%0A++++++++++++++++%3C%2Fxsl% 3Aif%3E%0A++++++++++++++++%3Cxsl%3Acatch%2F%3E%0A++++++++++++++%3C%2Fxsl%3Atr y%3E%0A++++++++++++%3C%2Fxsl%3Afor-each%3E%0A++++++++++%3C%2Ftbody%3E%0A+++++ +++%3C%2Ftable%3E%0A++++++%3C%2Fbody%3E%0A++++%3C%2Fhtml%3E%0A++%3C%2Fxsl%3At emplate%3E%0A%0A%3C%2Fxsl%3Astylesheet%3E%0A&input=&code-type=XSLT&input-type =None>.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] How to output the charact, Martin Honnen martin | Thread | Re: [xsl] How to output the charact, Michael Kay michaelk |
Re: [xsl] How to output the charact, Martin Honnen martin | Date | Re: [xsl] How to output the charact, Michael Kay michaelk |
Month |