Revision [431]

This is an old revision of CommandXaddbase made by DavidLee on 2009-04-01 03:55:13.

 

Command xaddbase




Name

xaddbase Adds xml:base attributes to an XML file.


Synopsis

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


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

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