Sablotron Guide and Reference

URIs .Implementation Notes

Summary

Sablotron can handle two URI schemes natively: 'file' and 'arg'.

Description

Only two URI schemes are built-in: 'file' and 'arg' (see .Named buffers). Moreover, it is possible to use the function SablotRegHandler to register an external scheme handler which will receive requests in all other schemes. See .Handlers and sablot.h and shandler.h files for details.

Relative URI references are resolved in conformance to RFC 2396. The base URI is well defined when the relative reference appears inside a XML document; when invoking sabcmd, the base URI is taken to correspond to the current working directory.

When specifying filenames, the following rules are in effect:
* specify the "file:" scheme for any standard files, i.e. refer to stdin as file://stdin etc.
* slashes and backslashes work equally fine, in Windows as well as Linux.
* to include a drive letter under Windows (e.g. C:\doc.xml), it is necessary to say file://c:/doc.xml.

See Also

Groups [ .Implementation Notes ]
Entries [ .Handlers | .Named buffers | SablotRegHandler | sabcmd ]

© 2002-2003 Ginger Alliance
revision 03-06-30
This page was generated by APIDOC