XPath: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
(Created page with "==References== {| | valign="top" | * [https://xmlstar.sourceforge.net/ XPath » XMLStarlet] * [https://github.com/sputnick-dev/saxon-lint XPath » Saxon Lint] * [https://metac...")
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<source lang="bash">
wget -cq https://jaist.dl.sourceforge.net/project/videlibri/Xidel/Xidel%200.9.8/xidel_0.9.8-1_amd64.deb -P ${HOME}/Downloads
sudo apt install ~/Downloads/xidel_0.9.8-1_amd64.deb
sudo apt --fix-broken install
</source>
==Playground==
<source lang="bash">
xidel --xquery '<table>{for $i in 1 to 10 return <tr><td>{$i}</td><td>{if ($i mod 2 = 0) then "even" else "odd"}</td></tr>}</table>' --output-format xml
</source>
==References==
==References==
{|
{|
| valign="top" |
| valign="top" |
* [https://videlibri.sourceforge.net/xidel.html#downloads XPath » Download » Xidel]
* [https://xmlstar.sourceforge.net/ XPath » XMLStarlet]
* [https://xmlstar.sourceforge.net/ XPath » XMLStarlet]
* [https://github.com/sputnick-dev/saxon-lint XPath » Saxon Lint]
* [https://github.com/sputnick-dev/saxon-lint XPath » Saxon Lint]

Latest revision as of 18:50, 12 September 2023

wget -cq https://jaist.dl.sourceforge.net/project/videlibri/Xidel/Xidel%200.9.8/xidel_0.9.8-1_amd64.deb -P ${HOME}/Downloads
sudo apt install ~/Downloads/xidel_0.9.8-1_amd64.deb
sudo apt --fix-broken install

Playground

xidel --xquery '<table>{for $i in 1 to 10 return <tr><td>{$i}</td><td>{if ($i mod 2 = 0) then "even" else "odd"}</td></tr>}</table>' --output-format xml

References