Revision [379]
This is an old revision of CommandXaddbase made by DavidLee on 2009-01-05 04:41:40.
Command xaddbase
Name
xaddbase Adds xml:base attributes to an XML file.Synopsis
xaddbase [options] [file]Options
-i input Use the supplied XML node as input instead of stdin or file
-relative
-r Add base URI's expressed as relative URI's relative to their parent
-all
-a Add base URI's to ALL nodes otherwise only adds a base URI to the root element, and any child element who's base URI differes from its parent. If not specified all xml:base attributes are removed which are unnecessary (who's value equals that of their parent).
Description
xaddbase performs the "add-xml-base" function from xproc. For the root node and all child nodes who's base URI differes from the root node (or all nodes if -a is given) adds an "xml:base" attribute indicating the BASE URI of the node.Example:
$ xaddbase -r file.xml
Return Value
Returns 0 if the command executed successfully, 1 if there was an error.CategoryCommands
CommandsInternal