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

> While looking at the script and noscript elements, I noticed some 
> other problems with them.  The current draft (2003-05-06) states that:
>
> "When this module is used, the script and noscript elements are added 
> to the Block and Inline content sets of the Block and Inline Text 
> Modules..."
>  Also, the content model for noscript is: (Heading | List | Block)+
>
> Since <noscript> is added to the Inline content model, then it makes 
> the following valid:
> <span>some text <script 
> language="text/javascript">document.write("something");<noscript><h>Heading</h></noscript> 
> more text</span>
>  Is there a way to specify that when script and noscript are used 
> within Inline elements, the content model is only (Inline)+, but when 
> used within Block elements, the content model is (Heading | List | 
> Block)+ using Schemas?  I know it can't be done with DTDs. 


  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.

CYA
...Lachy

Received on Wednesday, 19 November 2003 06:47:14 UTC