Test xpaths

This commit is contained in:
2022-03-21 00:39:02 +08:00
parent c2b3b876ab
commit 63e2f49588

View File

@ -61,11 +61,12 @@ cat \
perl -pe 's/TITLE/$ENV{title}/; s/CURRENTINT/$ENV{padint}/' perl -pe 's/TITLE/$ENV{title}/; s/CURRENTINT/$ENV{padint}/'
) \ ) \
<( <(
printf '<![CDATA['"$(
cat content-$padint quote-$padint | cat content-$padint quote-$padint |
tidy -q -asxml | tidy -q -ashtml |
xq -cx '.html.body' | sed '2 s/xmlns=".*"//g' |
tr '\n' ' ' | xmllint --noblanks --xpath '//body' -
printf "<![CDATA[$(cat -)]]" )"']]'
) \ ) \
<( <(
tail -n +$(( itemlinereplace +1 )) .rss.item.template | tail -n +$(( itemlinereplace +1 )) .rss.item.template |