Command xaddbase


xaddbase Adds xml:base attributes to an XML file.


xaddbase [ serialization options ] [options] [file]


-r,relativeAdd base URI's expressed as relative URI's relative to their parent
-a,-allAdd 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).

Supports the standard [ serialization options ]


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.

$ xaddbase -r file.xml

Return Value

Returns 0 if the command executed successfully, 1 if there was an error.


There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki