I have one question regarding an XPATH expression . Code:
- Code: Select all
<?xml version="1.1" encoding="UTF-8"?>
<foo:root xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:foo="http://foo" foo:schemaLocation="http://foo file:/c:/c1.xsd"/>
and schema:
- Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://foo" xmlns:foo = "http://foo" elementFormDefault="qualified">
<xs:element name="root"/>
<xs:simpleType name="range">
<xs:restriction base="xs:integer">
<xs:minInclusive value="17"/>
<xs:maxInclusive value="18"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>
When I'm executing this XPath:
- Code: Select all
17 instance of foo:range
I get the following error
- Code: Select all
net.sf.saxon.trans.StaticError: XPath syntax error at char 17 (...). There is no imported schema for namespace http://foo
I do not know where is the mistake. Can you help me please?
Thanks.
Regards
Donoiu Cristian, ro





data server software 