Revision [915]

This is an old revision of CommandXaddbase made by DavidLee on 2009-11-24 17:38:32.

 

Command xaddbase




Name

xaddbase Adds xml:base attributes to an XML file.


Synopsis

xaddbase [ serialization options ] [options] [file]

Options


-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).

Supports the standard [ 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:
$ xaddbase -r file.xml



Return Value

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

CategoryCommands

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