Test xpaths
This commit is contained in:
@ -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 |
|
||||||
|
Reference in New Issue
Block a user