[SCL] XML question

Murray Altheim m.altheim at open.ac.uk
Sat Jan 24 16:54:39 CST 2004


james anderson wrote:
> On Friday, Jan 23, 2004, at 21:14 Europe/Berlin, pat hayes wrote:
[...]
>>I want to be able to use SCL (in some syntactic form) as markup inside 
>>HTML in such a way that it is clearly linked to some particular part 
>>of the HTML but is invisible to any browser, ie does not appear 
>>visibly on the Web page. Rather in the way that href links are 
>>invisible, if you take my meaning.
> 
> it sounds a lot like it should be treated as a scripting language. 
> which means then either appears in a script element, which allows for 
> the otherwise-markup-syntax, or appears in attributes, with escaping as 
> required.
> 
> something like
> 
> <html>
>   <head>
>     <script>
>    here is some text with < & > .
>     </script>
>     </head>
>   <body>
>    <span style="font-weight: bold; color: red"> some red text 
> before&gt;</span>
>    <script>
>      here is some more text with < & > .
>     </script>
>    <span style="color: blue">&lt; &amp; some blue text after.</span>
>    </body>
>   </html>
> 
> (see file:///Documents/Standards/XML/html4/interact/scripts.html)

I think your suggestion is probably on target, iff the purpose of
the embedding is to act as some sort of scripting language for the
web page. If it's to act as a container for metadata, or some sort
of statements about the content of the web page content, then <style>
is probably not appropriate. There's also the danger that browsers
may try to interpret its content as Javascript. There'd have to be
some testing to make sure that certain SCL syntax constructs aren't
interpreted as Javascript.

If it is, your example is almost exactly right. The only thing
missing would be to apply for a MIME type for SCL, and then
using the 'type' attribute, as in:

 >   <head>
 >     <script type="text/scl">
 >    here is some text with < & > .
 >     </script>

Murray

......................................................................
Murray Altheim                    http://kmi.open.ac.uk/people/murray/
Knowledge Media Institute
The Open University, Milton Keynes, Bucks, MK7 6AA, UK               .

     "Iraqi sovereignty will be established by appointees
      appointing appointees to select appointees to select
      appointees. Add the fact that Bremer was appointed to
      his post by President Bush and Bush to his by the US
      Supreme Court, and you have the glorious new democratic
      tradition of the appointocracy: rule by an appointee's
      appointee's appointees' appointees' appointees' selectees."
      http://www.guardian.co.uk/comment/story/0,3604,1130138,00.html



More information about the SCL mailing list