Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

Understanding SLAX Default Namespaces

 

Version 1.2 of the SLAX language, which is supported in Junos OS Release 14.2 and later releases, introduces default namespaces for prefixes. Table 1 lists the prefixes that have default namespaces installed with the libslax software distribution.

When a prefix is used without the corresponding ns statement in scope, SLAX refers to the set of default namespaces. If the prefix has a default namespace, that namespace is automatically mapped to the prefix.

Table 1: Prefix Set with libslax

Prefix

Source

Default URI

bit

libslax

xml.libslax.org/bit

curl

libslax

xml.libslax.org/curl

exsl

exslt

http://exslt.org/common

crypto

exslt

http://exslt.org/crypto

math

exslt

http://exslt.org/math

set

exslt

http://exslt.org/sets

func

exslt

http://exslt.org/functions

str

exslt

http://exslt.org/strings

date

exslt

http://exslt.org/dates-and-times

dyn

exslt

http://exslt.org/dynamic

saxon

libxslt

http://icl.com/saxon

os

libslax

http://xml.libslax.org/os

xutil

libslax

http://xml.libslax.org/xutil

When using the slaxproc tool with the --format or --slax-to-xslt command-line options, the namespace is properly displayed, as shown in the following example:

Related Documentation