XIncProc XPointer Processor > Xmlns Scheme >

Bad Xmlns Scheme expression

What's up when xmlns expression is not well formed ?

if scheme data in a pointer part with the xmlns() scheme does not conform to the syntax defined, the pointer part does not contribute an entry to the namespace binding context.

Example

Given a simple xml :

            <customer xmlns="http://example.org/customer">
                <name xmlns="http://example.org/personal-info">John Doe</name>
            </customer>
        

The following expression:

xmlns(c=http://example.org/customer) xmlns(bad_expression) xmlns(p=http://example.org/personal-info) xpointer(/c:customer/p:name)

Will result (no exception) <name xmlns="http://example.org/personal-info">John Doe</name>