#lang racket/base (require "main.rkt") (require xml) #| The following grammar describes expressions that create X-expressions: xexpr = string | (list symbol (list (list symbol string) ...) xexpr ...) | (cons symbol (list xexpr ...)) | symbol | valid-char? | cdata | misc |# ;; recursively hyphenate strings within xexpr ;; todo: add exclusion #:only [only-proc (λ(x) x)] (define (hyphenate-xexpr x ) (define exclusions '(style script)) ; omit these from ever being hyphenated (cond ; todo: the only-proc semantics are illogical. ; main issue: keep it out of tags like