XPATH question
Posted: Fri Feb 05, 2010 11:53 am
				
				Hello
I have one question regarding an XPATH expression . Code:
and schema:
When I'm executing this XPath: 
I get the following error 
I do not know where is the mistake. Can you help me please?
Thanks.
Regards
Donoiu Cristian, ro
			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"/>
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>Code: Select all
17 instance of foo:rangeCode: Select all
net.sf.saxon.trans.StaticError: XPath syntax error at char 17 (...). There is no imported schema for namespace http://fooThanks.
Regards
Donoiu Cristian, ro