from Scheme values to XML nodes

Conversion of some basic Scheme types (string, boolean, char, number) to XML nodes now works. The stylesheet

<x:stylesheet
  xmlns:x = "http://www.w3.org/1999/XSL/Transform"
  xmlns:s = "http://uucode.com/xslt/scheme"
  x:extension-element-prefixes="s"
  version     = "1.0">

<x:template match="/">
  <x>
    <x1><s:scheme>"string value"</s:scheme></x1>
    <x2><s:scheme>(> 2 3)</s:scheme></x2>
    <x3><s:scheme>(/ 777 2)</s:scheme></x3>
    <x4><s:scheme>#\A</s:scheme></x4>
  </x>
</x:template>

</x:stylesheet>

produces, as expected

<x>
  <x1>string value</x1>
  <x2>false</x2>
  <x3>388.5</x3>
  <x4>A</x4>
</x>
Categories: Generative XML

Updated: