daisy / pipeline-scripts

!! NOTE: This project is now part of the pipeline-modules project !! | Script modules for the default DAISY Pipeline 2 distribution.
GNU Lesser General Public License v3.0
6 stars 5 forks source link

daisy202-to-epub3: metadata contains a lot of xmlns declarations #119

Open bertfrees opened 6 years ago

bertfrees commented 6 years ago

The current XML

<metadata>
  <dc:title xmlns:dc="http://purl.org/dc/elements/1.1/"
            xmlns:d="http://www.daisy.org/ns/pipeline/data"
            id="title">三匹の子ぶた</dc:title>
  <dc:identifier xmlns:dc="http://purl.org/dc/elements/1.1/"
                 id="pub-id">jsrpd-pigs-j</dc:identifier>
  <dc:language xmlns:dc="http://purl.org/dc/elements/1.1/"
               xmlns:d="http://www.daisy.org/ns/pipeline/data">ja</dc:language>
  <dc:date xmlns:dc="http://purl.org/dc/elements/1.1/"
           xmlns:d="http://www.daisy.org/ns/pipeline/data"
           id="date">2005-04-07</dc:date>
  <dc:format xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:d="http://www.daisy.org/ns/pipeline/data">EPUB3</dc:format>

is not wrong, but could be simplified to

<metadata xmlns:dc="http://purl.org/dc/elements/1.1/">
  <dc:title id="title">三匹の子ぶた</dc:title>
  <dc:identifier id="pub-id">jsrpd-pigs-j</dc:identifier>
  <dc:language >ja</dc:language>
  <dc:date id="date">2005-04-07</dc:date>
  <dc:format>EPUB3</dc:format>
</metadata>

Related: