Wiki source for CommandXaddbase


Show raw source

======Command xaddbase======

====Name====
**xaddbase** Adds xml:base attributes to an XML file.


====Synopsis====
xaddbase [ [[SerializationOptions serialization options]] ] [options] [file]

===Options===


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

Supports the standard [ [[SerializationOptions serialization options]] ]


====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:
%%(shell)
$ xaddbase -r file.xml
%%


====Return Value====
Returns 0 if the command executed successfully, 1 if there was an error.
----
[[Commands]]
[[CategoryCommands]]

Valid XHTML :: Valid CSS: :: Powered by WikkaWiki