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}/'
) \
<(
printf '<![CDATA['"$(
cat content-$padint quote-$padint |
tidy -q -asxml |
xq -cx '.html.body' |
tr '\n' ' ' |
printf "<![CDATA[$(cat -)]]"
tidy -q -ashtml |
sed '2 s/xmlns=".*"//g' |
xmllint --noblanks --xpath '//body' -
)"']]'
) \
<(
tail -n +$(( itemlinereplace +1 )) .rss.item.template |