Imported from previous forum
Hi,
One exchange I’m working with provides XML template definitions that begin like this:
<?xml version="1.0" encoding="UTF-8" ?>and another provides:
<?xml version="1.0" encoding="UTF-8" ?>This of course means the elements in the two documents are not the same element, and cannot be matched by a single XPath query.
Am I right in thinking that the second example should issue static error S1, according to section 4 of the FAST spec?
If that’s right, is the example of the concrete syntax on page 7 wrong, since it gives a different default namespace to that required by the RELAX NG schema.
Thanks for any help clarifying this,
Jonathan
Argh, the less-than symbols dont’ get escaped on submission, making it very difficult to post XML ![]()
Hi,
One exchange I’m working with provides XML template definitions that
begin like this:
<?xml version=“1.0” encoding=“UTF-8” ?>
<templates xmlns=“http://www.fixprotocol.org/ns/fast/td/1.1”>
and another provides:
<?xml version=“1.0” encoding=“UTF-8” ?>
<templates>
This of course means the “template” elements in the two documents are
not the same element, and cannot be matched by a single XPath query.
Am I right in thinking that the second example should issue static error
S1, according to section 4 of the FAST spec?If that’s right, is the example of the concrete syntax on page 7 wrong,
since it gives a different default namespace to that required by the
RELAX NG schema.Thanks for any help clarifying this,
Jonathan
Good catch, the example uses the wrong namespace. That namespace originates from earlier drafts of the specification and should of course have read “http://www.fixprotocol.org/ns/fast/td/1.1” as you suggest.
/David
Hi,
One exchange I’m working with provides XML template definitions that
<?xml version="1.0" encoding="UTF-8" ?> <templates
begin like this:xmlns=“http://www.fixprotocol.org/ns/fast/td/1.1”>
and another provides:
<?xml version="1.0" encoding="UTF-8" ?>This of course means the elements in the two documents are
not the same element, and cannot be matched by a single XPath query.Am I right in thinking that the second example should issue static error
S1, according to section 4 of the FAST spec?If that’s right, is the example of the concrete syntax on page 7 wrong,
since it gives a different default namespace to that required by the
RELAX NG schema.Thanks for any help clarifying this,
Jonathan