- From: <fazekas.benedek@nir.hu>
- Date: Mon, 28 Jul 2003 14:38:57 +0200 (CEST)
- To: xmlschema-dev@w3.org
hi,
for the xml instance below i wanna use more xml schemas. if i list them
in the schemaLocation attribute of the root element [UserInterface] it
works fine with the validator [http://www.w3.org/2001/03/webdata/xsv]
however if a try to put the schemaLocation attribute for the namespace
http://www.mo.hu/PortalForm somewhere else (tried FromList element and
first occurance of the form: namespaceid, line 22), the validation
fails as if the validator did not even try to load the referenced
schema [PortalXML_FormElements.xsd].
AFAIK one could put the schemaLocation attribute at the first occurance
of the namespace which the schema belongs to: am i mistaken?
(it worked with Syncro's oxygen, but did not with xmlspy)
thanks,
<?xml version="1.0" encoding="UTF-8"?>
<UserInterface xmlns="http://www.mo.hu/PortalXML" xmlns:form="http://www.mo.hu/PortalForm"
xmlns:global="http://www.mo.hu/Global" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.mo.hu/PortalXML PortalXML.xsd">
<FormList><!-- xsi:schemaLocation="http://www.mo.hu/PortalForm PortalXML_FormElements.xsd">-->
<PortalForm>
<division label="Division labelja">
<!--<global:input label="csak egy beiromezo" name="def">
<global:defaultInput>
<global:value>fdsa</global:value>
</global:defaultInput>
</global:input>-->
<global:report>
<!-- <simpleMessage>Töltsd ki!</simpleMessage>-->
<global:complexMessage>
<global:element> Lehetne tagolt szöveg is...
<!--<raise></raise>-->
</global:element>
</global:complexMessage>
</global:report>
<global:input label="TextInput labelja" name="valami" readonly="true">
<form:textInput xsi:schemaLocation="http://www.mo.hu/PortalForm PortalXML_FormElements.xsd">
<form:value>Ez a beírt szöveg</form:value>
</form:textInput>
</global:input>
<global:input label="Iranyitószám" name="postairsz">
<form:irSzamInput>
<form:value>1258</form:value>
</form:irSzamInput>
</global:input>
<global:input label="integer lableja" name="masintetdd">
<form:integerInput>
<!-- <integer/>-->
</form:integerInput>
</global:input>
<global:input label="mas integer" name="masintet">
<form:integerInput>
<form:value>-789456254</form:value>
</form:integerInput>
</global:input>
<global:input label="Írja be az emailcímét" name="consemail">
<form:emailInput>
<form:value>v-@h.hu</form:value>
</form:emailInput>
</global:input>
<global:input label="A choice labelja" name="neme">
<form:choice>
<form:listitem listitemID="FFI">
<global:label>
<!-- Egy összetett label felépítése -->
<global:element>
<global:raise>Ő</global:raise> egy</global:element>
<global:element>férfi</global:element>
</global:label>
</form:listitem>
<form:listitem listitemID="NO">
<global:label>
<!-- Egy összetett label felépítése -->
<global:element>
<global:raise>Ő</global:raise> egy</global:element>
<global:element>nő</global:element>
</global:label>
</form:listitem>
<!--<ref>1</ref>-->
<!-- A kiválasztott elemek, csak a value-ra van szükség.
Itt tárolható a default állapot, ha jön ilyen a
szolgáltatótól. -->
<form:selected>
<form:listitemID>FFI</form:listitemID>
<!-- <form:listitemID>NO</form:listitemID>-->
</form:selected>
</form:choice>
</global:input>
<global:input label="A select labelja" name="deigen">
<form:select>
<form:listitem listitemID="FFI">
<global:label>
<!-- Egy összetett label felépítése -->
<global:element>
<global:raise>Ő</global:raise> egy</global:element>
<global:element>férfi</global:element>
</global:label>
</form:listitem>
<form:listitem listitemID="NO">
<global:label>
<!-- Egy összetett label felépítése -->
<global:element>
<global:raise>Ő</global:raise> egy</global:element>
<global:element>nő</global:element>
</global:label>
</form:listitem>
<!--<ref>1</form:ref>-->
<!-- A kiválasztott elemek, csak a value-ra van szükség.
Itt tárolható a default állapot, ha jön ilyen a
szolgáltatótól. -->
<form:selected>
<form:listitemID>FFI</form:listitemID>
<form:listitemID>NO</form:listitemID>
</form:selected>
</form:select>
</global:input>
</division>
<commandSet>
<global:submit submitID="comm1">
<global:label> Oké </global:label>
</global:submit>
<global:submit submitID="comm2">
<global:label> Mégse </global:label>
</global:submit>
</commandSet>
</PortalForm>
</FormList>
<menu>
<global:submit submitID="menu1">
<global:label>1. menu pont</global:label>
</global:submit>
<global:submit submitID="menu2">
<global:label>2. menu pont</global:label>
</global:submit>
</menu>
<selectedSubmit>
<submitID>menu2</submitID>
</selectedSubmit>
</UserInterface>
--
Fazekas Benedek
benedek@nir.hu
Received on Monday, 28 July 2003 08:43:56 UTC