* Gert Doering ([email protected]) [131218 15:59]:
> > Ah,  of cause... simpleType doesn't work like that.  Did you really
> > found that in the schema (I only added the element)  
> I made that up, because I didn't know better.

A <simpleType> works via a base type, so at least

           <xs:simpleType name="hostname">
               <restriction base="xs:string" />
           </xs:simpleType>

Often more complex

           <xs:simpleType name="hostname">
               <xs:restriction base="xs:string">
                 <xs:pattern value="[a-z-.]{0,63}" />
               </xs:restriction>
           </xs:simpleType>

> This is what I have now (mainly "for the records as conclusion"):
>  - WSDL file which lacks a definition of "hostname"
>  - an "extra.xsd" file which contains just this:
> 
> <?xml version="1.0" encoding="UTF-8"?>^M
> <xs:schema
>     xmlns:xs="http://www.w3.org/2001/XMLSchema";
>     xmlns:me="http://xml.apache.org/axis/";
>     targetNamespace="http://xml.apache.org/axis/";
>     elementFormDefault="qualified"
>     attributeFormDefault="qualified">
>     <xs:element name="hostname" type="xs:string" />
>  </xs:schema>
> 
>  - this is used with $wsdl->importDefinions("extra.xsd")

Yes yes yes!  That's the way how to do it.  I often need such patches,
even for core schema's...  You may try to get Axis to fix it ;-)
-- 
Regards,

               MarkOv

------------------------------------------------------------------------
       Mark Overmeer MSc                                MARKOV Solutions
       [email protected]                          [email protected]
http://Mark.Overmeer.net                   http://solutions.overmeer.net


_______________________________________________
Xml-compile mailing list
[email protected]
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/xml-compile

Reply via email to