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