D 2017-04-11T22:13:42.589 J icomment Dr.\sChangelog\sdoes\snot\sseem\sto\srecognize\sall\sXPath\sexpressions.\r\n\r\nFor\sexample,\sI\shave\sa\schangelog\sat\shttp://www.videlibri.de/updates/changelog.xml\r\nand\shave\sset\sthe\sfollowing\sXPath\sfor\sDr.\sChangelog:\r\n\r\nversion\s=\sconcat(substring(//build[1]/@version,\s1,\s1),\s".",\ssubstring(//build[1]/@version,\s2))\r\n\r\n\r\nBut\sit\sdoes\snot\sset\sthe\sversion.\r\n\r\nThe\ssimpler\sXPath\sversion\s=\s//build[1]/@version\sis\srecognized,\sbut\sI\sneed\sto\sconvert\sthe\sinteger\sversion\scode\s1234\sto\sa\send\suser\sversion\snumber\s1.234.\r\n\r\n\r\nUsing\sthe\sconcat/substring\sfunctions\sseems\sto\sbe\sthe\sonly\sway\sto\sdo\sthis\sconversion\swith\sXPath\s1,\sso\sthe\sexpression\slooks\sslightly\sawkward.\r\n\r\nBesides\sit\swould\sbe\smuch\seasier\swith\sXPath\s2,\ssince\sXPath\s2\ssupports\sarithmetics\slike\s//build[1]/(@version\sdiv\s1000). J login BeniBela J mimetype text/x-fossil-plain J severity Minor J status Open J title Dr.\sChangelog\sComplex\sXPath J type Code_Defect K 74a4d24aa827e0702f3811c7c7fda6539f33fd67 U BeniBela Z 4635eda527ecc571e19be80c05927f9e