Skip to content

sbsdev/dtbook-update-metadata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dtbook-update-metadata

A tiny xml transformer that will update the meta data in your DTBook file and only that. No entity expansion, no anything! You get your original xml back with the updated meta data.

Installation

Clone and build with

mvn clean package

Release

Updates the version number in the pom and deploys the artifacts to Maven Central

mvn release:clean release:prepare
mvn release:perform

Usage

java -Ddc:Title="New Title" -jar dtbook-update-metadata-1.0-jar-with-dependencies.jar < original.xml > updated.xml

Valid meta data properties

The following meta data names are recognized.

  • dc:Title
  • dc:Creator
  • dc:Subject
  • dc:Description
  • dc:Publisher
  • dc:Date
  • dc:Type
  • dc:Format
  • dc:Identifier
  • dc:Source
  • dc:Language
  • dc:Rights
  • dtb:uid
  • dtb:sourceEdition
  • dtb:sourcePublisher
  • dtb:sourceRights
  • prod:series
  • prod:seriesNumber
  • prod:source

Contributing

If you have any improvements or comments please feel free to file a pull request or an issue.

Credits

Based on ideas on how to make a StaX transformer, a Java and XML tutorial and most importantly on how to disable entity expansion.

License

Copyright © 2024 Swiss Library for the Blind, Visually Impaired and Print Disabled.

Distributed under the GNU General Public License. See the file LICENSE.

About

A tiny xml transformer that will update the meta data in your DTBook file and only that

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •