Lecture overview
Keyboard shortcut: 'u'  Previous slide in this lecture
Keyboard shortcut: 'p'  Next slide in this lecture
Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  Annotated slide
Keyboard shortcut: 't'  Alphabetic index  Help page about these notes  Course home    semiconstant-stringsSlide 17 : 42

Problems with nested markup 

There is a fundamental problem of nested document fragments that must be dealt with
 

  <p> 
    A text with a 
    <a href="subsection/sec1.html">link</a> 
    to a <b>subsection</b>
  </p>
 

  (p
    "A text with a 
     (a "link" 'href "subsection/sec.html")
     to a (b "subsection")
    ")
 

  (p
   (string-append
     "A text with a " 
     (a "link" 'href "subsection/sec.html")
     " to a " (b "subsection")))
 

We have dropped the blue approach in favor of the brown approach.
The Emacs environment supports the embedding of a selected substring in a Scheme function.