Re: <link> vs. <script> for external scripts

Hi,

On Nov 19, 2003, at 7:45 AM, Christian Wolfgang Hujer wrote:

>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi Lachlan,
>
>
> Am Mittwoch, 19. November 2003 12:47 schrieb Lachlan Hunt:
>>   Actually, what I should have asked previously is: Is there anyway,
>> using an XML Schema, to specify that the content model is to be
>> inherited from its parent element?.
>>   ie. No matter where <script> and <noscript> elements occur, we don't
>> want elements inside <noscript> that would not normally be allowed to
>> occur within the parent element.
> good question, great hint for enhancements of XML Schema, and, afaik, 
> not
> possible with XML Schema :-(
> The content model is to be specified as defined type, inheriting the 
> parent
> element's content model is afaik impossible.
>

I am jumping in late (just saw the thread), you can use a complexType 
to get inheritance. For example:

<xs:complexType name="BaseNode">
   <xs:sequence>
     <xs:group ref="name:core.elems"/>
   </xs:sequence>
   <xs:attributeGroup ref="name:core.attrs"/>
</xs:complexType>

<xs:complexType name="ParentNode">
     <xs:complexContent>
       <xs:extension base="name:BaseNode">
         <xs:sequence>
           <xs:element ref="name:ChildNode"/>
         </xs:sequence>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>

<xs:complexType name="ChildNode">
     <xs:complexContent>
       <xs:extension base="name:BaseNode">
         <xs:sequence>
           <xs:element ref="name:SomethingElse"/>
         </xs:sequence>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>

Is that what you are talking about?

best,
-Rob


>
> Bye
> - --
> ITCQIS GmbH
> Christian Wolfgang Hujer
> Geschäftsführender Gesellschafter (Shareholding CEO)
> E-Mail: Christian.Hujer@itcqis.com
> WWW: http://www.itcqis.com/
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)
>
> iD8DBQE/u5AGzu6h7O/MKZkRAppjAJ9aXOIdysGIMr9NEp0u5Cwc1KsulgCfefr2
> yICCyz6h8DT0tAOtPQ91Wz8=
> =KK3y
> -----END PGP SIGNATURE-----
>

Received on Wednesday, 19 November 2003 11:20:35 UTC