3 if [ "x$1" == "x" ]; then
4 echo "nonametv-import-svt <xmlfile>"
6 echo "Import a datafile from Svt into the nonametv database."
11 awk 'BEGIN { p=0 } /^</ {p=1} p==1 {print}' $0 | xsltproc
- $1 | nonametv-import Svt
13 <?xml version
="1.0" encoding
="iso-8859-1"?
>
14 <xsl
:stylesheet version
="1.0" xmlns
:xsl
="http://www.w3.org/1999/XSL/Transform">
16 <xsl
:output method
="xml" indent
="no"/>
18 <xsl
:template match
="schedule">
20 <xsl
:copy-of
select="@*"/>
21 <xsl
:apply-templates
/>
25 <xsl
:template match
="programs">
27 <xsl
:copy-of
select="@*"/>
28 <xsl
:apply-templates
select="program">
29 <xsl
:sort select="normalize-space(week_number/text())"/>
30 <xsl
:sort select="normalize-space(channel/text())"/>
31 </xsl
:apply-templates
>
35 <xsl
:template match
="*">
36 <xsl
:copy-of
select="."/>