⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xmltv.dtd

📁 xml good example for tv guide.
💻 DTD
📖 第 1 页 / 共 2 页
字号:
<!ELEMENT director    (#PCDATA)><!ELEMENT actor       (#PCDATA)><!ELEMENT writer      (#PCDATA)><!ELEMENT adapter     (#PCDATA)><!ELEMENT producer    (#PCDATA)><!ELEMENT presenter   (#PCDATA)><!ELEMENT commentator (#PCDATA)><!ELEMENT guest       (#PCDATA)><!-- The date the programme or film was finished.  This will probablybe the same as the copyright date.--><!ELEMENT date (#PCDATA)><!-- Type of programme, eg 'soap', 'comedy' or whatever theequivalents are in your language.  There's no predefined set ofcategories and it's okay for a programme to belong to several.--><!ELEMENT category (#PCDATA)><!ATTLIST category lang CDATA #IMPLIED><!-- The language the programme will be broadcast in.  This does notinclude the language of any subtitles, but it is affected by dubbinginto a different language.  For example, if a French film is dubbedinto English, language=en and orig-language=fr.There are two ways to specify the language.  You can use thetwo-letter codes such as en or fr, or you can give a name such as'English' or 'Deutsch'.  In the latter case you might want to use the'lang' attribute, for example<language lang="fr">Allemand</language>--><!ELEMENT language (#PCDATA)><!ATTLIST language lang CDATA #IMPLIED><!-- The original language, before dubbing.  The same remarks as for'language' apply.--><!ELEMENT orig-language (#PCDATA)><!ATTLIST orig-language lang CDATA #IMPLIED><!-- The true length of the programme, not counting advertisements ortrailers.  But this does take account of any bits which were cut outof the broadcast version - eg if a two hour film is cut to 110 minutesand then padded with 20 minutes of advertising, length will be 110minutes even though end time minus start time is 130 minutes.--><!ELEMENT length (#PCDATA)><!ATTLIST length units (seconds | minutes | hours) #REQUIRED><!-- An icon associated with the element that contains it.src: uri of imagewidth, height: (optional) dimensions of imageThese dimensions are pixel dimensions for the time being, eventuallythis will change to be more like HTML's 'img'.--><!ELEMENT icon EMPTY><!ATTLIST icon src         CDATA #REQUIRED               width       CDATA #IMPLIED               height      CDATA #IMPLIED> <!-- The value of the element that contains it.  This is for elementsthat can have both a textual 'value' and an icon.  At present there isno 'lang' attribute here because things like 'PG' are not translatable(although a document explaining what 'PG' actually means would be).It happens that 'value' is used only for this sort of thing.--><!ELEMENT value (#PCDATA)><!-- A country where the programme was made or one of the countries ina joint production.  You can give the name of a country, in which caseyou might want to specify the language in which this name is written,or you can give a two-letter uppercase country code, in which case thelang attribute should not be given.  For example,<country lang="en">Italy</country><country>GB</country>--><!ELEMENT country (#PCDATA)><!ATTLIST country lang CDATA #IMPLIED><!-- Episode numberNot the title of the episode, its number or ID.  There are severalways of numbering episodes, so the 'system' attribute lets you specifywhich you mean.There are two predefined numbering systems, 'xmltv_ns' and'onscreen'.xmltv_ns: This is intended to be a general way to number episodes andparts of multi-part episodes.  It is three numbers separated by dots,the first is the series or season, the second the episode numberwithin that series, and the third the part number, if the programme ispart of a two-parter.  All these numbers are indexed from zero, andthey can be given in the form 'X/Y' to show series X out of Y seriesmade, or episode X out of Y episodes in this series, or part X of aY-part episode.  If any of these aren't known they can be omitted.You can put spaces whereever you like to make things easier to read.(NB 'part number' is not used when a whole programme is split in twofor purely scheduling reasons; it's intended for cases where therereally is a 'Part One' and 'Part Two'.  The format doesn't currentlyhave a way to represent a whole programme that happens to be splitacross two or more timeslots.)Some examples will make things clearer.  The first episode of thesecond series is '1.0.0/1' .  If it were a two-part episode, then thefirst half would be '1.0.0/2' and the second half '1.0.1/2'.  If youknow that an episode is from the first season, but you don't knowwhich episode it is or whether it is part of a multiparter, you couldgive the episode-num as '0..'.  Here the second and third numbers havebeen omitted.  If you know that this is the first part of a three-partepisode, which is the last episode of the first series of thirteen,its number would be '0 . 12/13 . 0/3'.  The series number is just '0'because you don't know how many series there are in total - perhapsthe show is still being made!The other predefined system, onscreen, is to simply copy what theprogramme makers write in the credits - 'Episode #FFEE' wouldtranslate to '#FFEE'.You are encouraged to use one of these two if possible; if xmltv_ns isnot general enough for your needs, let me know.  But if you want, youcan use your own system and give the 'system' attribute as a URLdescribing the system you use.--><!ELEMENT episode-num (#PCDATA)><!ATTLIST episode-num system CDATA "onscreen"><!-- Video details: the subelements describe the picture quality asfollows:present: whether this programme has a picture (no, in thecase of radio stations broadcast on TV or 'Blue'), legal values are'yes' or 'no'.  Obviously if the value is 'no', the other elements aremeaningless.colour: 'yes' for colour, 'no' for black-and-white.aspect: The horizontal:vertical aspect ratio, eg '4:3' or '16:9'.quality: information on the quality, eg 'HDTV', '800x600'.--><!ELEMENT video (present?, colour?, aspect?)><!ELEMENT present (#PCDATA)><!ELEMENT colour (#PCDATA)><!ELEMENT aspect (#PCDATA)><!ELEMENT quality (#PCDATA)><!-- Audio details, similar to video details above.present: whether this programme has any sound at all, 'yes' or 'no'.stereo: Description of the stereo-ness of the sound.  Legal valuesare currently 'mono','stereo','dolby','dolby digital' and 'surround'; others like 'quad'might be added later.--><!ELEMENT audio (present?, stereo?)><!ELEMENT stereo (#PCDATA)><!-- When and where the programme was last shown, if known.  Normallyin TV listings 'repeat' means 'previously shown on this channel', butif you don't know what channel the old screening was on (but do knowthat it happened) then you can omit the 'channel' attribute.Similarly you can omit the 'start' attribute if you don't know whenthe previous transmission was (though you can of course give just theyear, etc.).The absence of this element does not say for certain that theprogramme is brand new and has never been screened anywhere before.--><!ELEMENT previously-shown EMPTY><!ATTLIST previously-shown start   CDATA #IMPLIED                           channel CDATA #IMPLIED ><!-- 'Premiere'.  Different channels have different meanings for thisword - sometimes it means a film has never before been seen on TV inthat country, but other channels use it to mean 'the first showing ofthis film on our channel in the current run'.  It might have beenshown before, but now they have paid for another set of showings,which makes the first in that set count as a premiere!So this element doesn't have a clear meaning, just use it to representwhere 'premiere' would appear in a printed TV listing.  You can usethe content of the element to explain exactly what is meant, forexample:<premiere lang="en">  First showing on national terrestrial TV</premiere>The textual content is a 'paragraph' as for <desc>.  If you don't wantto give an explanation, just write empty content:<premiere />--><!ELEMENT premiere (#PCDATA)><!ATTLIST premiere lang CDATA #IMPLIED><!-- Last-chance.  In a way this is the opposite of premiere.  Somechannels buy the rights to show a movie a certain number of times, andthe first may be flagged 'premiere', the last as 'last showing'.For symmetry with premiere, you may use the element content to give a'paragraph' describing exactly what is meant - it's unlikely to be thelast showing ever!  Otherwise, explicitly put empty content:<last-chance />--><!ELEMENT last-chance (#PCDATA)><!ATTLIST last-chance lang CDATA #IMPLIED><!-- New.  This is the first screened programme from a new show thathas never been shown on television before - if not worldwide then atleast never before in this country.  After the first episode orprogramme has been shown, subsequent ones are no longer 'new'.Similarly the second series of an established programme is not 'new'.Note that this does not mean 'new season' or 'new episode' of anexisting show.  You can express part of that using the episode-numstuff.--><!ELEMENT new EMPTY><!-- Subtitles.  These can be either 'teletext' (sent digitally, anddisplayed at the viewer's request) or 'onscreen' (superimposed on thepicture and impossible to get rid of).  You can have multiple subtitlestreams to handle different languages.  Language for subtitles isspecified in the same way as for programmes.--><!ELEMENT subtitles (language?)><!ATTLIST subtitles type (teletext | onscreen) #IMPLIED><!-- Rating.  Various bodies decide on classifications for films -usually a minimum age you must be to see it.  In principle the samecould be done for ordinary TV programmes.  Because there are manysystems for doing this, you can also specify the rating system used(which in practice is the same as the body which made the rating).--><!ELEMENT rating (value, icon*)><!ATTLIST rating system CDATA #IMPLIED><!-- 'Star rating' - many listings guides award a programme a score asa quick guide to how good it is.  The value of this element should be'N / M', for example one star out of a possible five stars would be'1 / 5'.  Zero stars is also a possible score (and not the same as'unrated').  You should try to map whatever wacky system your listingssource uses to a number of stars: so for example if they have thumbsup, thumbs sideways and thumbs down, you could map that to two, one orzero stars out of two.  Whitespace between the numbers and slash isignored.--><!ELEMENT star-rating (value, icon*)><!-- (Why are things like 'stereo', which must be one of a smallnumber of values, stored as the contents of elements rather than asattributes?  Because they are data rather than metadata.  Attributesare used for things like the language or encoding of element contents,or for programme transmission details.) -->

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -