ORA-XQ-118-E: namespace declaration attributes, improvement on the example

SECTION 3.7.1.2: namespace declaration attributes

It would be better if the example showed both ways to get a
namespace declared for an element constructor, using both the
prolog and a namespace declaration attribute, like this:

declare namespace metric="http://example.org/metric/units";
<box xmlns:english = "http://example.org/english/units">
  <height> <metric:meters>3</metric:meters> </height>
  <width> <english:feet>6</english:feet> </width>
  <depth> <english:inches>18</english:inches> </depth>
</box>

- Steve B.

Received on Tuesday, 17 February 2004 11:23:22 UTC