[SCL] XML question

james anderson james.anderson at setf.de
Fri Jan 23 17:39:50 CST 2004


On Friday, Jan 23, 2004, at 21:14 Europe/Berlin, pat hayes wrote:

>> ...
>> (maybe I'm not understanding you correctly here)
>>
>>>> , you (as you say) begin to rely on
>>>> XML authoring tools to escape the contents. This can be a real
>>>> difficulty for authoring, but it certainly is the solution. Now,
>>>> if XCL is an XML markup language in its own right, you'd just put
>>>> the XCL into the document as XML markup, using XML Namespaces.
>>>
>>> Right. The reason for the third goal is to be able to link the SCL 
>>> to HTML anchors; but like I say, this is a private hobbyhorse. The 
>>> first two are more important.
>>
>> There's probably better ways to do this, using the XCL syntax
>> instead. Do you mean link the HTML-to-SCL, or SCL-to-HTML?
>
> 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)

...



More information about the SCL mailing list