#666 video html to tei

RED
open
None
7
2014-08-14
2014-04-27
javad
No

hi
when i want convert <video> to <media> in html2tei.xsl, happen error in attribute url and mimeType.

attribute url is empty and mimeType is "image/jpeg". but when i change attribute "match" to match="img|video/source|embed", all <source> convert to <media>

Discussion

  • Sebastian Rahtz

    Sebastian Rahtz - 2014-04-27

    can you submit a test file, please? <video> seems to work for me, so I need to see what you are doing differently

     
  • javad

    javad - 2014-04-28

    this is example:
    <video>
    <source src="movie.mp4" type="video/mp4" />
    <source src="movie.ogg" type="video/ogg" />
    </video>
    and test.html attached for full test.

     
  • Sebastian Rahtz

    Sebastian Rahtz - 2014-04-28

    hmm. the problem is that we don't have an equivalent container in the TEI to video or audio with alternate sources. I have (unsatisfactorily) changed the code to just take the first <source>. If you can suggest a better solution?

     
  • javad

    javad - 2014-04-28

    i think insert <media> with @corresp and insert <p/> in back matter.
    <p/> is contains <media/> with any mimetype.

    Also i send request for mailling list TEI-L:
    1. add new valid element to media for example: <altMedia/>
    2. definition media in <choice/> as valid element.

     
  • Martin Holmes

    Martin Holmes - 2014-04-28

    Per discussion on the Council list: I suggest that the <media> element should be able to nest, in order to handle this, with a basic processing model which is similar to that of the HTML <object> element. We should also consider a similar idea for <graphic>.

     
  • Lou Burnard

    Lou Burnard - 2014-04-28

    As per my comment on Council list, I disagree.

     
  • Syd Bauman

    Syd Bauman - 2014-07-01

    We should consider adding a fallback= attribute to <graphic> and <media> which is a pointer to, e.g., another <graphic> or <media>. Could, of course, point elsewhere.

     
  • Sebastian Rahtz

    Sebastian Rahtz - 2014-07-01

    Council conclusion is that SR should submit a spec for a new grouping element.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks