stylesheet/test/test.scm
;;; test.scm

; The CSS2.1 Test Suite is at <http://www.w3.org/Style/CSS/Test/CSS2.1/current/>
; It uses external style sheets, so we need to fetch the tests and
; extract the embedded style sheet before attempting to parse it.

(require (planet "htmlprag.ss" ("neil" "htmlprag.plt"))
         (lib "url.ss" "net")
         (lib "match.ss"))

; url->sxml : url-string -> sxml
;  fetch the page with the url url, parse it and return the parse tree
(define (url->sxml url)
  (html->sxml (get-pure-port (string->url url))))

; sxml->links : sxml -> (list (list url-string string))
;  return a list of all links in the parse tree
(define (sxml->links sxml)
  (match sxml
    [('a ('@ ((not 'href ) _) ... ('href url)  . more) text)            
     (list (list url text))]
    [(item ...)           
     (apply append 
            (map sxml->links sxml))]
    [else '()]))


;;; Get list of all links
(define base-url "http://www.w3.org/Style/CSS/Test/CSS2.1/current/")

;(define all-links (sxml->links (url->sxml base-url)))

(define all-links
  '(
  ("t040109-c17-comments-00-b.htm" "t040109-c17-comments-00-b.htm")
  ("t040109-c17-comments-00-b.xht" "t040109-c17-comments-00-b.xht")
  ("t040109-c17-comments-01-b.htm" "t040109-c17-comments-01-b.htm")
  ("t040109-c17-comments-01-b.xht" "t040109-c17-comments-01-b.xht")
  ;;; These test handling of parse errors - and thus contains errors!
  ;("t0402-c71-fwd-parsing-00-f.htm" "t0402-c71-fwd-parsing-00-f.htm")
  ;("t0402-c71-fwd-parsing-00-f.xht" "t0402-c71-fwd-parsing-00-f.xht")
  ;("t0402-c71-fwd-parsing-01-f.htm" "t0402-c71-fwd-parsing-01-f.htm")
  ;("t0402-c71-fwd-parsing-01-f.xht" "t0402-c71-fwd-parsing-01-f.xht")
  ;("t0402-c71-fwd-parsing-02-f.htm" "t0402-c71-fwd-parsing-02-f.htm")
  ;("t0402-c71-fwd-parsing-02-f.xht" "t0402-c71-fwd-parsing-02-f.xht")
  ;("t0402-c71-fwd-parsing-03-f.htm" "t0402-c71-fwd-parsing-03-f.htm")
  ;("t0402-c71-fwd-parsing-03-f.xht" "t0402-c71-fwd-parsing-03-f.xht")
  ;("t0402-c71-fwd-parsing-04-f.htm" "t0402-c71-fwd-parsing-04-f.htm")
  ;("t0402-c71-fwd-parsing-04-f.xht" "t0402-c71-fwd-parsing-04-f.xht")
  ("t040302-c61-ex-len-00-b-a.htm" "t040302-c61-ex-len-00-b-a.htm")
  ("t040302-c61-ex-len-00-b-a.xht" "t040302-c61-ex-len-00-b-a.xht")
  ("t040302-c61-phys-len-00-b.htm" "t040302-c61-phys-len-00-b.htm")
  ("t040302-c61-phys-len-00-b.xht" "t040302-c61-phys-len-00-b.xht")
  ("t040302-c61-rel-len-00-b-ag.htm" "t040302-c61-rel-len-00-b-ag.htm")  ; . in url
  ("t040302-c61-rel-len-00-b-ag.xht" "t040302-c61-rel-len-00-b-ag.xht")
  ("t040303-c62-percent-00-b-ag.htm" "t040303-c62-percent-00-b-ag.htm")
  ("t040303-c62-percent-00-b-ag.xht" "t040303-c62-percent-00-b-ag.xht")  ; . in url
  ("t040304-c64-uri-00-a-g.htm" "t040304-c64-uri-00-a-g.htm")  ; . in url
  ("t040304-c64-uri-00-a-g.xht" "t040304-c64-uri-00-a-g.xht")
  ("t040306-c63-color-00-b-ag.htm" "t040306-c63-color-00-b-ag.htm")
  ("t040306-c63-color-00-b-ag.xht" "t040306-c63-color-00-b-ag.xht")
  ("t050201-c12-grouping-00-b.htm" "t050201-c12-grouping-00-b.htm")
  ("t050201-c12-grouping-00-b.xht" "t050201-c12-grouping-00-b.xht")
  ("t0505-c16-descendant-00-e.htm" "t0505-c16-descendant-00-e.htm")
  ("t0505-c16-descendant-00-e.xht" "t0505-c16-descendant-00-e.xht")
  ("t0505-c16-descendant-01-e.htm" "t0505-c16-descendant-01-e.htm")
  ("t0505-c16-descendant-01-e.xht" "t0505-c16-descendant-01-e.xht")
  ("t0505-c16-descendant-02-e.htm" "t0505-c16-descendant-02-e.htm")
  ("t0505-c16-descendant-02-e.xht" "t0505-c16-descendant-02-e.xht")
  ;("t050803-c14-classes-00-e.htm" "t050803-c14-classes-00-e.htm")   ; .1 as class name
  ;("t050803-c14-classes-00-e.xht" "t050803-c14-classes-00-e.xht")   ; illegal according to notes in Appenddix G.3 ?
  ("t0509-c15-ids-00-a.htm" "t0509-c15-ids-00-a.htm")
  ("t0509-c15-ids-00-a.xht" "t0509-c15-ids-00-a.xht")
  ("t0509-c15-ids-01-e.htm" "t0509-c15-ids-01-e.htm")
  ("t0509-c15-ids-01-e.xht" "t0509-c15-ids-01-e.xht")
  ("t0510-c25-pseudo-elmnt-00-c.htm" "t0510-c25-pseudo-elmnt-00-c.htm")
  ("t0510-c25-pseudo-elmnt-00-c.xht" "t0510-c25-pseudo-elmnt-00-c.xht")
  ("t0511-c21-pseud-anch-00-e-i.htm" "t0511-c21-pseud-anch-00-e-i.htm")
  ("t0511-c21-pseud-anch-00-e-i.xht" "t0511-c21-pseud-anch-00-e-i.xht")
  ("t0511-c21-pseud-link-00-e.htm" "t0511-c21-pseud-link-00-e.htm")
  ("t0511-c21-pseud-link-00-e.xht" "t0511-c21-pseud-link-00-e.xht")
  ("t0511-c21-pseud-link-01-e.htm" "t0511-c21-pseud-link-01-e.htm")
  ("t0511-c21-pseud-link-01-e.xht" "t0511-c21-pseud-link-01-e.xht")
  ("t0511-c21-pseud-link-02-e.htm" "t0511-c21-pseud-link-02-e.htm")
  ("t0511-c21-pseud-link-02-e.xht" "t0511-c21-pseud-link-02-e.xht")
  ("t0511-c21-pseud-link-03-e.htm" "t0511-c21-pseud-link-03-e.htm")
  ("t0511-c21-pseud-link-03-e.xht" "t0511-c21-pseud-link-03-e.xht")
  ("t051103-c21-activ-ln-00-e-i.htm" "t051103-c21-activ-ln-00-e-i.htm")
  ("t051103-c21-activ-ln-00-e-i.xht" "t051103-c21-activ-ln-00-e-i.xht")
  ("t051103-c21-focus-ln-00-e-i.htm" "t051103-c21-focus-ln-00-e-i.htm")
  ("t051103-c21-focus-ln-00-e-i.xht" "t051103-c21-focus-ln-00-e-i.xht")
  ("t051103-c21-hover-ln-00-e-i.htm" "t051103-c21-hover-ln-00-e-i.htm")
  ("t051103-c21-hover-ln-00-e-i.xht" "t051103-c21-hover-ln-00-e-i.xht")
  ("t051201-c23-first-line-00-b.htm" "t051201-c23-first-line-00-b.htm")
  ("t051201-c23-first-line-00-b.xht" "t051201-c23-first-line-00-b.xht")
  ("t051202-c24-first-lttr-00-b.htm" "t051202-c24-first-lttr-00-b.htm")
  ("t051202-c24-first-lttr-00-b.xht" "t051202-c24-first-lttr-00-b.xht")
  ("t051202-c26-psudo-nest-00-c.htm" "t051202-c26-psudo-nest-00-c.htm")
  ("t051202-c26-psudo-nest-00-c.xht" "t051202-c26-psudo-nest-00-c.xht")
  ("t0602-c13-inh-underlin-00-e.htm" "t0602-c13-inh-underlin-00-e.htm")
  ("t0602-c13-inh-underlin-00-e.xht" "t0602-c13-inh-underlin-00-e.xht")
  ("t0602-c13-inheritance-00-e.htm" "t0602-c13-inheritance-00-e.htm")
  ("t0602-c13-inheritance-00-e.xht" "t0602-c13-inheritance-00-e.xht")
  ("t0603-c11-import-00-b.htm" "t0603-c11-import-00-b.htm")
  ("t0603-c11-import-00-b.xht" "t0603-c11-import-00-b.xht")
  ("t060401-c32-cascading-00-b.htm" "t060401-c32-cascading-00-b.htm")
  ("t060401-c32-cascading-00-b.xht" "t060401-c32-cascading-00-b.xht")
  ("t060402-c31-important-00-b.htm" "t060402-c31-important-00-b.htm")
  ("t060402-c31-important-00-b.xht" "t060402-c31-important-00-b.xht")
  ("t060403-c21-pseu-cls-00-e-i.htm" "t060403-c21-pseu-cls-00-e-i.htm")
  ("t060403-c21-pseu-cls-00-e-i.xht" "t060403-c21-pseu-cls-00-e-i.xht")
  ("t060403-c21-pseu-id-00-e-i.htm" "t060403-c21-pseu-id-00-e-i.htm")
  ("t060403-c21-pseu-id-00-e-i.xht" "t060403-c21-pseu-id-00-e-i.xht")
  ("t0801-c412-hz-box-00-b-a.htm" "t0801-c412-hz-box-00-b-a.htm")
  ("t0801-c412-hz-box-00-b-a.xht" "t0801-c412-hz-box-00-b-a.xht")
  ("t0803-c5501-imrgn-t-00-b-ag.htm" "t0803-c5501-imrgn-t-00-b-ag.htm")
  ("t0803-c5501-imrgn-t-00-b-ag.xht" "t0803-c5501-imrgn-t-00-b-ag.xht")
  ("t0803-c5501-mrgn-t-00-b-a.htm" "t0803-c5501-mrgn-t-00-b-a.htm")
  ("t0803-c5501-mrgn-t-00-b-a.xht" "t0803-c5501-mrgn-t-00-b-a.xht")
  ("t0803-c5502-imrgn-r-00-b-ag.htm" "t0803-c5502-imrgn-r-00-b-ag.htm")  ; / and . in url
  ("t0803-c5502-imrgn-r-00-b-ag.xht" "t0803-c5502-imrgn-r-00-b-ag.xht")
  ("t0803-c5502-imrgn-r-01-b-ag.htm" "t0803-c5502-imrgn-r-01-b-ag.htm")  ; / and . in url
  ("t0803-c5502-imrgn-r-01-b-ag.xht" "t0803-c5502-imrgn-r-01-b-ag.xht")
  ("t0803-c5502-imrgn-r-02-b-a.htm" "t0803-c5502-imrgn-r-02-b-a.htm")
  ("t0803-c5502-imrgn-r-02-b-a.xht" "t0803-c5502-imrgn-r-02-b-a.xht")
  ("t0803-c5502-imrgn-r-03-b-a.htm" "t0803-c5502-imrgn-r-03-b-a.htm")
  ("t0803-c5502-imrgn-r-03-b-a.xht" "t0803-c5502-imrgn-r-03-b-a.xht")
  ("t0803-c5502-imrgn-r-04-b-ag.htm" "t0803-c5502-imrgn-r-04-b-ag.htm")  ; / and . in url
  ("t0803-c5502-imrgn-r-04-b-ag.xht" "t0803-c5502-imrgn-r-04-b-ag.xht")
  ("t0803-c5502-imrgn-r-05-b-ag.htm" "t0803-c5502-imrgn-r-05-b-ag.htm")
  ("t0803-c5502-imrgn-r-05-b-ag.xht" "t0803-c5502-imrgn-r-05-b-ag.xht")
  ("t0803-c5502-imrgn-r-06-b-ag.htm" "t0803-c5502-imrgn-r-06-b-ag.htm")
  ("t0803-c5502-imrgn-r-06-b-ag.xht" "t0803-c5502-imrgn-r-06-b-ag.xht")
  ("t0803-c5502-mrgn-r-00-c-ag.htm" "t0803-c5502-mrgn-r-00-c-ag.htm")
  ("t0803-c5502-mrgn-r-00-c-ag.xht" "t0803-c5502-mrgn-r-00-c-ag.xht")
  ("t0803-c5502-mrgn-r-01-c-a.htm" "t0803-c5502-mrgn-r-01-c-a.htm")
  ("t0803-c5502-mrgn-r-01-c-a.xht" "t0803-c5502-mrgn-r-01-c-a.xht")
  ("t0803-c5502-mrgn-r-02-c.htm" "t0803-c5502-mrgn-r-02-c.htm")
  ("t0803-c5502-mrgn-r-02-c.xht" "t0803-c5502-mrgn-r-02-c.xht")
  ("t0803-c5502-mrgn-r-03-c.htm" "t0803-c5502-mrgn-r-03-c.htm")
  ("t0803-c5502-mrgn-r-03-c.xht" "t0803-c5502-mrgn-r-03-c.xht")
  ("t0803-c5503-imrgn-b-00-b-a.htm" "t0803-c5503-imrgn-b-00-b-a.htm")
  ("t0803-c5503-imrgn-b-00-b-a.xht" "t0803-c5503-imrgn-b-00-b-a.xht")
  ("t0803-c5503-mrgn-b-00-b-a.htm" "t0803-c5503-mrgn-b-00-b-a.htm")
  ("t0803-c5503-mrgn-b-00-b-a.xht" "t0803-c5503-mrgn-b-00-b-a.xht")
  ("t0803-c5504-imrgn-l-00-b-ag.htm" "t0803-c5504-imrgn-l-00-b-ag.htm")  ; / and . in url
  ("t0803-c5504-imrgn-l-00-b-ag.xht" "t0803-c5504-imrgn-l-00-b-ag.xht")
  ("t0803-c5504-imrgn-l-01-b-ag.htm" "t0803-c5504-imrgn-l-01-b-ag.htm")  ; / and . in url
  ("t0803-c5504-imrgn-l-01-b-ag.xht" "t0803-c5504-imrgn-l-01-b-ag.xht")
  ("t0803-c5504-imrgn-l-02-b-ag.htm" "t0803-c5504-imrgn-l-02-b-ag.htm")  ; do
  ("t0803-c5504-imrgn-l-02-b-ag.xht" "t0803-c5504-imrgn-l-02-b-ag.xht")  ; do
  ("t0803-c5504-imrgn-l-03-b-a.htm" "t0803-c5504-imrgn-l-03-b-a.htm")
  ("t0803-c5504-imrgn-l-03-b-a.xht" "t0803-c5504-imrgn-l-03-b-a.xht")
  ("t0803-c5504-imrgn-l-04-b-ag.htm" "t0803-c5504-imrgn-l-04-b-ag.htm")  ; do
  ("t0803-c5504-imrgn-l-04-b-ag.xht" "t0803-c5504-imrgn-l-04-b-ag.xht")
  ("t0803-c5504-imrgn-l-05-b-ag.htm" "t0803-c5504-imrgn-l-05-b-ag.htm")
  ("t0803-c5504-imrgn-l-05-b-ag.xht" "t0803-c5504-imrgn-l-05-b-ag.xht")
  ("t0803-c5504-imrgn-l-06-b-ag.htm" "t0803-c5504-imrgn-l-06-b-ag.htm")
  ("t0803-c5504-imrgn-l-06-b-ag.xht" "t0803-c5504-imrgn-l-06-b-ag.xht")
  ("t0803-c5504-mrgn-l-00-c-ag.htm" "t0803-c5504-mrgn-l-00-c-ag.htm")
  ("t0803-c5504-mrgn-l-00-c-ag.xht" "t0803-c5504-mrgn-l-00-c-ag.xht")
  ("t0803-c5504-mrgn-l-01-c-a.htm" "t0803-c5504-mrgn-l-01-c-a.htm")
  ("t0803-c5504-mrgn-l-01-c-a.xht" "t0803-c5504-mrgn-l-01-c-a.xht")
  ("t0803-c5504-mrgn-l-02-c.htm" "t0803-c5504-mrgn-l-02-c.htm")
  ("t0803-c5504-mrgn-l-02-c.xht" "t0803-c5504-mrgn-l-02-c.xht")
  ("t0803-c5504-mrgn-l-03-c.htm" "t0803-c5504-mrgn-l-03-c.htm")
  ("t0803-c5504-mrgn-l-03-c.xht" "t0803-c5504-mrgn-l-03-c.xht")
  ("t0803-c5505-imrgn-00-a-ag.htm" "t0803-c5505-imrgn-00-a-ag.htm")
  ("t0803-c5505-imrgn-00-a-ag.xht" "t0803-c5505-imrgn-00-a-ag.xht")
  ("t0803-c5505-mrgn-00-b-ag.htm" "t0803-c5505-mrgn-00-b-ag.htm")
  ("t0803-c5505-mrgn-00-b-ag.xht" "t0803-c5505-mrgn-00-b-ag.xht")
  ("t0803-c5505-mrgn-01-e-a.htm" "t0803-c5505-mrgn-01-e-a.htm")
  ("t0803-c5505-mrgn-01-e-a.xht" "t0803-c5505-mrgn-01-e-a.xht")
  ("t0803-c5505-mrgn-02-c.htm" "t0803-c5505-mrgn-02-c.htm")
  ("t0803-c5505-mrgn-02-c.xht" "t0803-c5505-mrgn-02-c.xht")
  ("t0803-c5505-mrgn-03-c-ag.htm" "t0803-c5505-mrgn-03-c-ag.htm")
  ("t0803-c5505-mrgn-03-c-ag.xht" "t0803-c5505-mrgn-03-c-ag.xht")
  ("t080301-c411-vt-mrgn-00-b.htm" "t080301-c411-vt-mrgn-00-b.htm")
  ("t080301-c411-vt-mrgn-00-b.xht" "t080301-c411-vt-mrgn-00-b.xht")
  ("t0804-c5506-ipadn-t-00-b-a.htm" "t0804-c5506-ipadn-t-00-b-a.htm")
  ("t0804-c5506-ipadn-t-00-b-a.xht" "t0804-c5506-ipadn-t-00-b-a.xht")
  ("t0804-c5506-ipadn-t-01-b-a.htm" "t0804-c5506-ipadn-t-01-b-a.htm")
  ("t0804-c5506-ipadn-t-01-b-a.xht" "t0804-c5506-ipadn-t-01-b-a.xht")
  ("t0804-c5506-ipadn-t-02-b-a.htm" "t0804-c5506-ipadn-t-02-b-a.htm")
  ("t0804-c5506-ipadn-t-02-b-a.xht" "t0804-c5506-ipadn-t-02-b-a.xht")
  ("t0804-c5506-padn-t-00-b-a.htm" "t0804-c5506-padn-t-00-b-a.htm")
  ("t0804-c5506-padn-t-00-b-a.xht" "t0804-c5506-padn-t-00-b-a.xht")
  ("t0804-c5507-ipadn-r-00-b-ag.htm" "t0804-c5507-ipadn-r-00-b-ag.htm") 
  ("t0804-c5507-ipadn-r-00-b-ag.xht" "t0804-c5507-ipadn-r-00-b-ag.xht")
  ("t0804-c5507-ipadn-r-01-b-ag.htm" "t0804-c5507-ipadn-r-01-b-ag.htm")
  ("t0804-c5507-ipadn-r-01-b-ag.xht" "t0804-c5507-ipadn-r-01-b-ag.xht")
  ("t0804-c5507-ipadn-r-02-b-ag.htm" "t0804-c5507-ipadn-r-02-b-ag.htm")
  ("t0804-c5507-ipadn-r-02-b-ag.xht" "t0804-c5507-ipadn-r-02-b-ag.xht")
  ("t0804-c5507-ipadn-r-03-b-a.htm" "t0804-c5507-ipadn-r-03-b-a.htm")
  ("t0804-c5507-ipadn-r-03-b-a.xht" "t0804-c5507-ipadn-r-03-b-a.xht")
  ("t0804-c5507-ipadn-r-04-b-ag.htm" "t0804-c5507-ipadn-r-04-b-ag.htm")
  ("t0804-c5507-ipadn-r-04-b-ag.xht" "t0804-c5507-ipadn-r-04-b-ag.xht")
  ("t0804-c5507-padn-r-00-c-ag.htm" "t0804-c5507-padn-r-00-c-ag.htm")
  ("t0804-c5507-padn-r-00-c-ag.xht" "t0804-c5507-padn-r-00-c-ag.xht")
  ("t0804-c5507-padn-r-01-c-a.htm" "t0804-c5507-padn-r-01-c-a.htm")
  ("t0804-c5507-padn-r-01-c-a.xht" "t0804-c5507-padn-r-01-c-a.xht")
  ("t0804-c5507-padn-r-02-f.htm" "t0804-c5507-padn-r-02-f.htm")
  ("t0804-c5507-padn-r-02-f.xht" "t0804-c5507-padn-r-02-f.xht")
  ("t0804-c5507-padn-r-03-f.htm" "t0804-c5507-padn-r-03-f.htm")
  ("t0804-c5507-padn-r-03-f.xht" "t0804-c5507-padn-r-03-f.xht")
  ("t0804-c5508-ipadn-b-00-b-a.htm" "t0804-c5508-ipadn-b-00-b-a.htm")
  ("t0804-c5508-ipadn-b-00-b-a.xht" "t0804-c5508-ipadn-b-00-b-a.xht")
  ("t0804-c5508-ipadn-b-01-f-a.htm" "t0804-c5508-ipadn-b-01-f-a.htm")
  ("t0804-c5508-ipadn-b-01-f-a.xht" "t0804-c5508-ipadn-b-01-f-a.xht")
  ("t0804-c5508-ipadn-b-02-b-a.htm" "t0804-c5508-ipadn-b-02-b-a.htm")
  ("t0804-c5508-ipadn-b-02-b-a.xht" "t0804-c5508-ipadn-b-02-b-a.xht")
  ("t0804-c5508-ipadn-b-03-b-a.htm" "t0804-c5508-ipadn-b-03-b-a.htm")
  ("t0804-c5508-ipadn-b-03-b-a.xht" "t0804-c5508-ipadn-b-03-b-a.xht")
  ("t0804-c5509-ipadn-l-00-b-ag.htm" "t0804-c5509-ipadn-l-00-b-ag.htm")
  ("t0804-c5509-ipadn-l-00-b-ag.xht" "t0804-c5509-ipadn-l-00-b-ag.xht")
  ("t0804-c5509-ipadn-l-01-b-ag.htm" "t0804-c5509-ipadn-l-01-b-ag.htm")
  ("t0804-c5509-ipadn-l-01-b-ag.xht" "t0804-c5509-ipadn-l-01-b-ag.xht")
  ("t0804-c5509-ipadn-l-02-b-ag.htm" "t0804-c5509-ipadn-l-02-b-ag.htm")
  ("t0804-c5509-ipadn-l-02-b-ag.xht" "t0804-c5509-ipadn-l-02-b-ag.xht")
  ("t0804-c5509-ipadn-l-03-b-a.htm" "t0804-c5509-ipadn-l-03-b-a.htm")
  ("t0804-c5509-ipadn-l-03-b-a.xht" "t0804-c5509-ipadn-l-03-b-a.xht")
  ("t0804-c5509-ipadn-l-04-f-ag.htm" "t0804-c5509-ipadn-l-04-f-ag.htm")
  ("t0804-c5509-ipadn-l-04-f-ag.xht" "t0804-c5509-ipadn-l-04-f-ag.xht")
  ("t0804-c5509-padn-l-00-b-ag.htm" "t0804-c5509-padn-l-00-b-ag.htm")
  ("t0804-c5509-padn-l-00-b-ag.xht" "t0804-c5509-padn-l-00-b-ag.xht")
  ("t0804-c5509-padn-l-01-b-a.htm" "t0804-c5509-padn-l-01-b-a.htm")
  ("t0804-c5509-padn-l-01-b-a.xht" "t0804-c5509-padn-l-01-b-a.xht")
  ("t0804-c5509-padn-l-02-f.htm" "t0804-c5509-padn-l-02-f.htm")
  ("t0804-c5509-padn-l-02-f.xht" "t0804-c5509-padn-l-02-f.xht")
  ("t0804-c5509-padn-l-03-f-g.htm" "t0804-c5509-padn-l-03-f-g.htm")
  ("t0804-c5509-padn-l-03-f-g.xht" "t0804-c5509-padn-l-03-f-g.xht")
  ("t0804-c5510-ipadn-00-b-ag.htm" "t0804-c5510-ipadn-00-b-ag.htm")
  ("t0804-c5510-ipadn-00-b-ag.xht" "t0804-c5510-ipadn-00-b-ag.xht")
  ("t0804-c5510-padn-00-b-ag.htm" "t0804-c5510-padn-00-b-ag.htm")
  ("t0804-c5510-padn-00-b-ag.xht" "t0804-c5510-padn-00-b-ag.xht")
  ("t0804-c5510-padn-01-e-a.htm" "t0804-c5510-padn-01-e-a.htm")
  ("t0804-c5510-padn-01-e-a.xht" "t0804-c5510-padn-01-e-a.xht")
  ("t0804-c5510-padn-02-f.htm" "t0804-c5510-padn-02-f.htm")
  ("t0804-c5510-padn-02-f.xht" "t0804-c5510-padn-02-f.xht")
  ("t0805-c5511-brdr-tw-00-b.htm" "t0805-c5511-brdr-tw-00-b.htm")
  ("t0805-c5511-brdr-tw-00-b.xht" "t0805-c5511-brdr-tw-00-b.xht")
  ("t0805-c5511-brdr-tw-01-b-g.htm" "t0805-c5511-brdr-tw-01-b-g.htm")
  ("t0805-c5511-brdr-tw-01-b-g.xht" "t0805-c5511-brdr-tw-01-b-g.xht")
  ("t0805-c5511-brdr-tw-02-b.htm" "t0805-c5511-brdr-tw-02-b.htm")
  ("t0805-c5511-brdr-tw-02-b.xht" "t0805-c5511-brdr-tw-02-b.xht")
  ("t0805-c5511-brdr-tw-03-b.htm" "t0805-c5511-brdr-tw-03-b.htm")
  ("t0805-c5511-brdr-tw-03-b.xht" "t0805-c5511-brdr-tw-03-b.xht")
  ("t0805-c5511-ibrdr-tw-00-a.htm" "t0805-c5511-ibrdr-tw-00-a.htm")
  ("t0805-c5511-ibrdr-tw-00-a.xht" "t0805-c5511-ibrdr-tw-00-a.xht")
  ("t0805-c5512-brdr-rw-00-b.htm" "t0805-c5512-brdr-rw-00-b.htm")
  ("t0805-c5512-brdr-rw-00-b.xht" "t0805-c5512-brdr-rw-00-b.xht")
  ("t0805-c5512-brdr-rw-01-b-g.htm" "t0805-c5512-brdr-rw-01-b-g.htm")
  ("t0805-c5512-brdr-rw-01-b-g.xht" "t0805-c5512-brdr-rw-01-b-g.xht")
  ("t0805-c5512-brdr-rw-02-b.htm" "t0805-c5512-brdr-rw-02-b.htm")
  ("t0805-c5512-brdr-rw-02-b.xht" "t0805-c5512-brdr-rw-02-b.xht")
  ("t0805-c5512-brdr-rw-03-b.htm" "t0805-c5512-brdr-rw-03-b.htm")
  ("t0805-c5512-brdr-rw-03-b.xht" "t0805-c5512-brdr-rw-03-b.xht")
  ("t0805-c5512-ibrdr-rw-00-a.htm" "t0805-c5512-ibrdr-rw-00-a.htm")
  ("t0805-c5512-ibrdr-rw-00-a.xht" "t0805-c5512-ibrdr-rw-00-a.xht")
  ("t0805-c5513-brdr-bw-00-b.htm" "t0805-c5513-brdr-bw-00-b.htm")
  ("t0805-c5513-brdr-bw-00-b.xht" "t0805-c5513-brdr-bw-00-b.xht")
  ("t0805-c5513-brdr-bw-01-b-g.htm" "t0805-c5513-brdr-bw-01-b-g.htm")
  ("t0805-c5513-brdr-bw-01-b-g.xht" "t0805-c5513-brdr-bw-01-b-g.xht")
  ("t0805-c5513-brdr-bw-02-b.htm" "t0805-c5513-brdr-bw-02-b.htm")
  ("t0805-c5513-brdr-bw-02-b.xht" "t0805-c5513-brdr-bw-02-b.xht")
  ("t0805-c5513-brdr-bw-03-b.htm" "t0805-c5513-brdr-bw-03-b.htm")
  ("t0805-c5513-brdr-bw-03-b.xht" "t0805-c5513-brdr-bw-03-b.xht")
  ("t0805-c5513-ibrdr-bw-00-a.htm" "t0805-c5513-ibrdr-bw-00-a.htm")
  ("t0805-c5513-ibrdr-bw-00-a.xht" "t0805-c5513-ibrdr-bw-00-a.xht")
  ("t0805-c5514-brdr-lw-00-b.htm" "t0805-c5514-brdr-lw-00-b.htm")
  ("t0805-c5514-brdr-lw-00-b.xht" "t0805-c5514-brdr-lw-00-b.xht")
  ("t0805-c5514-brdr-lw-01-b-g.htm" "t0805-c5514-brdr-lw-01-b-g.htm")
  ("t0805-c5514-brdr-lw-01-b-g.xht" "t0805-c5514-brdr-lw-01-b-g.xht")
  ("t0805-c5514-brdr-lw-02-b.htm" "t0805-c5514-brdr-lw-02-b.htm")
  ("t0805-c5514-brdr-lw-02-b.xht" "t0805-c5514-brdr-lw-02-b.xht")
  ("t0805-c5514-brdr-lw-03-b.htm" "t0805-c5514-brdr-lw-03-b.htm")
  ("t0805-c5514-brdr-lw-03-b.xht" "t0805-c5514-brdr-lw-03-b.xht")
  ("t0805-c5514-ibrdr-lw-00-a.htm" "t0805-c5514-ibrdr-lw-00-a.htm")
  ("t0805-c5514-ibrdr-lw-00-a.xht" "t0805-c5514-ibrdr-lw-00-a.xht")
  ("t0805-c5515-brdr-w-00-a.htm" "t0805-c5515-brdr-w-00-a.htm")
  ("t0805-c5515-brdr-w-00-a.xht" "t0805-c5515-brdr-w-00-a.xht")
  ("t0805-c5515-brdr-w-01-b-g.htm" "t0805-c5515-brdr-w-01-b-g.htm")
  ("t0805-c5515-brdr-w-01-b-g.xht" "t0805-c5515-brdr-w-01-b-g.xht")
  ("t0805-c5515-brdr-w-02-b.htm" "t0805-c5515-brdr-w-02-b.htm")
  ("t0805-c5515-brdr-w-02-b.xht" "t0805-c5515-brdr-w-02-b.xht")
  ("t0805-c5515-ibrdr-00-b.htm" "t0805-c5515-ibrdr-00-b.htm")
  ("t0805-c5515-ibrdr-00-b.xht" "t0805-c5515-ibrdr-00-b.xht")
  ("t0805-c5516-brdr-c-00-a.htm" "t0805-c5516-brdr-c-00-a.htm")
  ("t0805-c5516-brdr-c-00-a.xht" "t0805-c5516-brdr-c-00-a.xht")
  ("t0805-c5516-ibrdr-c-00-a.htm" "t0805-c5516-ibrdr-c-00-a.htm")
  ("t0805-c5516-ibrdr-c-00-a.xht" "t0805-c5516-ibrdr-c-00-a.xht")
  ("t0805-c5517-brdr-s-00-c.htm" "t0805-c5517-brdr-s-00-c.htm")
  ("t0805-c5517-brdr-s-00-c.xht" "t0805-c5517-brdr-s-00-c.xht")
  ("t0805-c5517-ibrdr-s-00-a.htm" "t0805-c5517-ibrdr-s-00-a.htm")
  ("t0805-c5517-ibrdr-s-00-a.xht" "t0805-c5517-ibrdr-s-00-a.xht")
  ("t0805-c5518-brdr-t-00-a.htm" "t0805-c5518-brdr-t-00-a.htm")
  ("t0805-c5518-brdr-t-00-a.xht" "t0805-c5518-brdr-t-00-a.xht")
  ("t0805-c5518-brdr-t-01-e.htm" "t0805-c5518-brdr-t-01-e.htm")
  ("t0805-c5518-brdr-t-01-e.xht" "t0805-c5518-brdr-t-01-e.xht")
  ("t0805-c5518-ibrdr-t-00-a.htm" "t0805-c5518-ibrdr-t-00-a.htm")
  ("t0805-c5518-ibrdr-t-00-a.xht" "t0805-c5518-ibrdr-t-00-a.xht")
  ("t0805-c5519-brdr-r-00-a.htm" "t0805-c5519-brdr-r-00-a.htm")
  ("t0805-c5519-brdr-r-00-a.xht" "t0805-c5519-brdr-r-00-a.xht")
  ("t0805-c5519-brdr-r-01-e.htm" "t0805-c5519-brdr-r-01-e.htm")
  ("t0805-c5519-brdr-r-01-e.xht" "t0805-c5519-brdr-r-01-e.xht")
  ("t0805-c5519-brdr-r-02-e.htm" "t0805-c5519-brdr-r-02-e.htm")
  ("t0805-c5519-brdr-r-02-e.xht" "t0805-c5519-brdr-r-02-e.xht")
  ("t0805-c5519-ibrdr-r-00-a.htm" "t0805-c5519-ibrdr-r-00-a.htm")
  ("t0805-c5519-ibrdr-r-00-a.xht" "t0805-c5519-ibrdr-r-00-a.xht")
  ("t0805-c5520-brdr-b-00-a.htm" "t0805-c5520-brdr-b-00-a.htm")
  ("t0805-c5520-brdr-b-00-a.xht" "t0805-c5520-brdr-b-00-a.xht")
  ("t0805-c5520-brdr-b-01-e.htm" "t0805-c5520-brdr-b-01-e.htm")
  ("t0805-c5520-brdr-b-01-e.xht" "t0805-c5520-brdr-b-01-e.xht")
  ("t0805-c5520-ibrdr-b-00-a.htm" "t0805-c5520-ibrdr-b-00-a.htm")
  ("t0805-c5520-ibrdr-b-00-a.xht" "t0805-c5520-ibrdr-b-00-a.xht")
  ("t0805-c5521-brdr-l-00-a.htm" "t0805-c5521-brdr-l-00-a.htm")
  ("t0805-c5521-brdr-l-00-a.xht" "t0805-c5521-brdr-l-00-a.xht")
  ("t0805-c5521-brdr-l-01-e.htm" "t0805-c5521-brdr-l-01-e.htm")
  ("t0805-c5521-brdr-l-01-e.xht" "t0805-c5521-brdr-l-01-e.xht")
  ("t0805-c5521-brdr-l-02-e.htm" "t0805-c5521-brdr-l-02-e.htm")
  ("t0805-c5521-brdr-l-02-e.xht" "t0805-c5521-brdr-l-02-e.xht")
  ("t0805-c5521-ibrdr-l-00-a.htm" "t0805-c5521-ibrdr-l-00-a.htm")
  ("t0805-c5521-ibrdr-l-00-a.xht" "t0805-c5521-ibrdr-l-00-a.xht")
  ("t0805-c5522-brdr-00-b.htm" "t0805-c5522-brdr-00-b.htm")
  ("t0805-c5522-brdr-00-b.xht" "t0805-c5522-brdr-00-b.xht")
  ("t0805-c5522-brdr-01-b-g.htm" "t0805-c5522-brdr-01-b-g.htm")
  ("t0805-c5522-brdr-01-b-g.xht" "t0805-c5522-brdr-01-b-g.xht")
  ("t0805-c5522-brdr-02-e.htm" "t0805-c5522-brdr-02-e.htm")
  ("t0805-c5522-brdr-02-e.xht" "t0805-c5522-brdr-02-e.xht")
  ("t0805-c5522-ibrdr-00-a.htm" "t0805-c5522-ibrdr-00-a.htm")
  ("t0805-c5522-ibrdr-00-a.xht" "t0805-c5522-ibrdr-00-a.xht")
  ("t09-c5526c-display-00-e.htm" "t09-c5526c-display-00-e.htm")
  ("t09-c5526c-display-00-e.xht" "t09-c5526c-display-00-e.xht")
  ("t090402-c42-ibx-pad-00-d-ag.htm" "t090402-c42-ibx-pad-00-d-ag.htm")
  ("t090402-c42-ibx-pad-00-d-ag.xht" "t090402-c42-ibx-pad-00-d-ag.xht")
  ("t0905-c414-flt-00-d.htm" "t0905-c414-flt-00-d.htm")
  ("t0905-c414-flt-00-d.xht" "t0905-c414-flt-00-d.xht")
  ("t0905-c414-flt-01-d-g.htm" "t0905-c414-flt-01-d-g.htm")
  ("t0905-c414-flt-01-d-g.xht" "t0905-c414-flt-01-d-g.xht")
  ("t0905-c414-flt-02-c.htm" "t0905-c414-flt-02-c.htm")
  ("t0905-c414-flt-02-c.xht" "t0905-c414-flt-02-c.xht")
  ("t0905-c414-flt-03-c.htm" "t0905-c414-flt-03-c.htm")
  ("t0905-c414-flt-03-c.xht" "t0905-c414-flt-03-c.xht")
  ("t0905-c414-flt-04-c.htm" "t0905-c414-flt-04-c.htm")
  ("t0905-c414-flt-04-c.xht" "t0905-c414-flt-04-c.xht")
  ("t0905-c414-flt-fit-00-d.htm" "t0905-c414-flt-fit-00-d.htm")
  ("t0905-c414-flt-fit-00-d.xht" "t0905-c414-flt-fit-00-d.xht")
  ("t0905-c414-flt-fit-01-d-g.htm" "t0905-c414-flt-fit-01-d-g.htm")
  ("t0905-c414-flt-fit-01-d-g.xht" "t0905-c414-flt-fit-01-d-g.xht")
  ("t0905-c414-flt-wrap-00-e.htm" "t0905-c414-flt-wrap-00-e.htm")
  ("t0905-c414-flt-wrap-00-e.xht" "t0905-c414-flt-wrap-00-e.xht")
  ("t0905-c414-flt-wrap-01-d-g.htm" "t0905-c414-flt-wrap-01-d-g.htm")
  ("t0905-c414-flt-wrap-01-d-g.xht" "t0905-c414-flt-wrap-01-d-g.xht")
  ("t0905-c5525-fltblck-00-d-ag.htm" "t0905-c5525-fltblck-00-d-ag.htm")
  ("t0905-c5525-fltblck-00-d-ag.xht" "t0905-c5525-fltblck-00-d-ag.xht")
  ("t0905-c5525-fltblck-01-d.htm" "t0905-c5525-fltblck-01-d.htm")
  ("t0905-c5525-fltblck-01-d.xht" "t0905-c5525-fltblck-01-d.xht")
  ("t0905-c5525-fltclr-00-c-ag.htm" "t0905-c5525-fltclr-00-c-ag.htm")
  ("t0905-c5525-fltclr-00-c-ag.xht" "t0905-c5525-fltclr-00-c-ag.xht")
  ("t0905-c5525-fltcont-00-d-g.htm" "t0905-c5525-fltcont-00-d-g.htm")
  ("t0905-c5525-fltcont-00-d-g.xht" "t0905-c5525-fltcont-00-d-g.xht")
  ("t0905-c5525-flthw-00-c-g.htm" "t0905-c5525-flthw-00-c-g.htm")
  ("t0905-c5525-flthw-00-c-g.xht" "t0905-c5525-flthw-00-c-g.xht")
  ("t0905-c5525-fltinln-00-c-ag.htm" "t0905-c5525-fltinln-00-c-ag.htm")
  ("t0905-c5525-fltinln-00-c-ag.xht" "t0905-c5525-fltinln-00-c-ag.xht")
  ("t0905-c5525-fltmrgn-00-c-ag.htm" "t0905-c5525-fltmrgn-00-c-ag.htm")
  ("t0905-c5525-fltmrgn-00-c-ag.xht" "t0905-c5525-fltmrgn-00-c-ag.xht")
  ("t0905-c5525-fltmult-00-d-g.htm" "t0905-c5525-fltmult-00-d-g.htm")
  ("t0905-c5525-fltmult-00-d-g.xht" "t0905-c5525-fltmult-00-d-g.xht")
  ("t0905-c5525-fltwidth-00-c-g.htm" "t0905-c5525-fltwidth-00-c-g.htm")
  ("t0905-c5525-fltwidth-00-c-g.xht" "t0905-c5525-fltwidth-00-c-g.xht")
  ("t0905-c5525-fltwidth-01-c-g.htm" "t0905-c5525-fltwidth-01-c-g.htm")
  ("t0905-c5525-fltwidth-01-c-g.xht" "t0905-c5525-fltwidth-01-c-g.xht")
  ("t0905-c5525-fltwidth-02-c-g.htm" "t0905-c5525-fltwidth-02-c-g.htm")
  ("t0905-c5525-fltwidth-02-c-g.xht" "t0905-c5525-fltwidth-02-c-g.xht")
  ("t0905-c5525-fltwidth-03-c-g.htm" "t0905-c5525-fltwidth-03-c-g.htm")
  ("t0905-c5525-fltwidth-03-c-g.xht" "t0905-c5525-fltwidth-03-c-g.xht")
  ("t0905-c5525-fltwrap-00-b.htm" "t0905-c5525-fltwrap-00-b.htm")
  ("t0905-c5525-fltwrap-00-b.xht" "t0905-c5525-fltwrap-00-b.xht")
  ("t090501-c414-flt-00-d.htm" "t090501-c414-flt-00-d.htm")
  ("t090501-c414-flt-00-d.xht" "t090501-c414-flt-00-d.xht")
  ("t090501-c414-flt-01-b.htm" "t090501-c414-flt-01-b.htm")
  ("t090501-c414-flt-01-b.xht" "t090501-c414-flt-01-b.xht")
  ("t090501-c414-flt-02-d-g.htm" "t090501-c414-flt-02-d-g.htm")
  ("t090501-c414-flt-02-d-g.xht" "t090501-c414-flt-02-d-g.xht")
  ("t090501-c414-flt-03-b-g.htm" "t090501-c414-flt-03-b-g.htm")
  ("t090501-c414-flt-03-b-g.xht" "t090501-c414-flt-03-b-g.xht")
  ("t090501-c414-flt-ln-00-d.htm" "t090501-c414-flt-ln-00-d.htm")
  ("t090501-c414-flt-ln-00-d.xht" "t090501-c414-flt-ln-00-d.xht")
  ("t090501-c414-flt-ln-01-d-g.htm" "t090501-c414-flt-ln-01-d-g.htm")
  ("t090501-c414-flt-ln-01-d-g.xht" "t090501-c414-flt-ln-01-d-g.xht")
  ("t090501-c414-flt-ln-02-d.htm" "t090501-c414-flt-ln-02-d.htm")
  ("t090501-c414-flt-ln-02-d.xht" "t090501-c414-flt-ln-02-d.xht")
  ("t090501-c414-flt-ln-03-d.htm" "t090501-c414-flt-ln-03-d.htm")
  ("t090501-c414-flt-ln-03-d.xht" "t090501-c414-flt-ln-03-d.xht")
  ("t090501-c5525-flt-l-00-b-g.htm" "t090501-c5525-flt-l-00-b-g.htm")
  ("t090501-c5525-flt-l-00-b-g.xht" "t090501-c5525-flt-l-00-b-g.xht")
  ("t090501-c5525-flt-r-00-b-g.htm" "t090501-c5525-flt-r-00-b-g.htm")
  ("t090501-c5525-flt-r-00-b-g.xht" "t090501-c5525-flt-r-00-b-g.xht")
  ("t1002-c5523-width-00-b-g.htm" "t1002-c5523-width-00-b-g.htm")
  ("t1002-c5523-width-00-b-g.xht" "t1002-c5523-width-00-b-g.xht")
  ("t1002-c5523-width-01-b-g.htm" "t1002-c5523-width-01-b-g.htm")
  ("t1002-c5523-width-01-b-g.xht" "t1002-c5523-width-01-b-g.xht")
  ("t1002-c5523-width-02-b-g.htm" "t1002-c5523-width-02-b-g.htm")
  ("t1002-c5523-width-02-b-g.xht" "t1002-c5523-width-02-b-g.xht")
  ("t100303-c412-blockw-00-d-ag.htm" "t100303-c412-blockw-00-d-ag.htm")
  ("t100303-c412-blockw-00-d-ag.xht" "t100303-c412-blockw-00-d-ag.xht")
  ("t100304-c43-rpl-bbx-00-d-g.htm" "t100304-c43-rpl-bbx-00-d-g.htm")
  ("t100304-c43-rpl-bbx-00-d-g.xht" "t100304-c43-rpl-bbx-00-d-g.xht")
  ("t100304-c43-rpl-bbx-01-d-g.htm" "t100304-c43-rpl-bbx-01-d-g.htm")
  ("t100304-c43-rpl-bbx-01-d-g.xht" "t100304-c43-rpl-bbx-01-d-g.xht")
  ("t1004-c43-rpl-bbx-00-d-ag.htm" "t1004-c43-rpl-bbx-00-d-ag.htm")
  ("t1004-c43-rpl-bbx-00-d-ag.xht" "t1004-c43-rpl-bbx-00-d-ag.xht")
  ("t1004-c43-rpl-ibx-00-d-ag.htm" "t1004-c43-rpl-ibx-00-d-ag.htm")
  ("t1004-c43-rpl-ibx-00-d-ag.xht" "t1004-c43-rpl-ibx-00-d-ag.xht")
  ("t1004-c5524-width-00-b-g.htm" "t1004-c5524-width-00-b-g.htm")
  ("t1004-c5524-width-00-b-g.xht" "t1004-c5524-width-00-b-g.xht")
  ("t1005-c5524-width-00-b-g.htm" "t1005-c5524-width-00-b-g.htm")
  ("t1005-c5524-width-00-b-g.xht" "t1005-c5524-width-00-b-g.xht")
  ("t1005-c5524-width-01-b-g.htm" "t1005-c5524-width-01-b-g.htm")
  ("t1005-c5524-width-01-b-g.xht" "t1005-c5524-width-01-b-g.xht")
  ("t1008-c44-ln-box-00-d-ag.htm" "t1008-c44-ln-box-00-d-ag.htm")
  ("t1008-c44-ln-box-00-d-ag.xht" "t1008-c44-ln-box-00-d-ag.xht")
  ("t1008-c44-ln-box-01-d-ag.htm" "t1008-c44-ln-box-01-d-ag.htm")
  ("t1008-c44-ln-box-01-d-ag.xht" "t1008-c44-ln-box-01-d-ag.xht")
  ("t1008-c44-ln-box-02-d-ag.htm" "t1008-c44-ln-box-02-d-ag.htm")
  ("t1008-c44-ln-box-02-d-ag.xht" "t1008-c44-ln-box-02-d-ag.xht")
  ("t1008-c44-ln-box-03-d-ag.htm" "t1008-c44-ln-box-03-d-ag.htm")
  ("t1008-c44-ln-box-03-d-ag.xht" "t1008-c44-ln-box-03-d-ag.xht")
  ("t100801-c42-ibx-ht-00-d-a.htm" "t100801-c42-ibx-ht-00-d-a.htm")
  ("t100801-c42-ibx-ht-00-d-a.xht" "t100801-c42-ibx-ht-00-d-a.xht")
  ("t100801-c544-valgn-00-a-ag.htm" "t100801-c544-valgn-00-a-ag.htm")
  ("t100801-c544-valgn-00-a-ag.xht" "t100801-c544-valgn-00-a-ag.xht")
  ("t100801-c544-valgn-01-d-ag.htm" "t100801-c544-valgn-01-d-ag.htm")
  ("t100801-c544-valgn-01-d-ag.xht" "t100801-c544-valgn-01-d-ag.xht")
  ("t100801-c544-valgn-02-d-agi.htm" "t100801-c544-valgn-02-d-agi.htm")
  ("t100801-c544-valgn-02-d-agi.xht" "t100801-c544-valgn-02-d-agi.xht")
  ("t100801-c544-valgn-03-d-agi.htm" "t100801-c544-valgn-03-d-agi.htm")
  ("t100801-c544-valgn-03-d-agi.xht" "t100801-c544-valgn-03-d-agi.xht")
  ("t100801-c544-valgn-04-d-agi.htm" "t100801-c544-valgn-04-d-agi.htm")
  ("t100801-c544-valgn-04-d-agi.xht" "t100801-c544-valgn-04-d-agi.xht")
  ("t100801-c548-leadin-00-d-a.htm" "t100801-c548-leadin-00-d-a.htm")
  ("t100801-c548-leadin-00-d-a.xht" "t100801-c548-leadin-00-d-a.xht")
  ("t100801-c548-ln-ht-00-c-a.htm" "t100801-c548-ln-ht-00-c-a.htm")
  ("t100801-c548-ln-ht-00-c-a.xht" "t100801-c548-ln-ht-00-c-a.xht")
  ("t100801-c548-ln-ht-01-b-ag.htm" "t100801-c548-ln-ht-01-b-ag.htm")
  ("t100801-c548-ln-ht-01-b-ag.xht" "t100801-c548-ln-ht-01-b-ag.xht")
  ("t100801-c548-ln-ht-02-b-ag.htm" "t100801-c548-ln-ht-02-b-ag.htm")
  ("t100801-c548-ln-ht-02-b-ag.xht" "t100801-c548-ln-ht-02-b-ag.xht")
  ("t100801-c548-ln-ht-03-d-ag.htm" "t100801-c548-ln-ht-03-d-ag.htm")
  ("t100801-c548-ln-ht-03-d-ag.xht" "t100801-c548-ln-ht-03-d-ag.xht")
  ("t100801-c548-ln-ht-04-d-ag.htm" "t100801-c548-ln-ht-04-d-ag.htm")
  ("t100801-c548-ln-ht-04-d-ag.xht" "t100801-c548-ln-ht-04-d-ag.xht")
  ("t1205-c561-list-displ-00-b.htm" "t1205-c561-list-displ-00-b.htm")
  ("t1205-c561-list-displ-00-b.xht" "t1205-c561-list-displ-00-b.xht")
  ("t1205-c563-list-type-00-b.htm" "t1205-c563-list-type-00-b.htm")
  ("t1205-c563-list-type-00-b.xht" "t1205-c563-list-type-00-b.xht")
  ("t1205-c563-list-type-01-b.htm" "t1205-c563-list-type-01-b.htm")
  ("t1205-c563-list-type-01-b.xht" "t1205-c563-list-type-01-b.xht")
  ("t1205-c564-list-img-00-b-g.htm" "t1205-c564-list-img-00-b-g.htm")
  ("t1205-c564-list-img-00-b-g.xht" "t1205-c564-list-img-00-b-g.xht")
  ("t1205-c565-list-pos-00-b.htm" "t1205-c565-list-pos-00-b.htm")
  ("t1205-c565-list-pos-00-b.xht" "t1205-c565-list-pos-00-b.xht")
  ("t1205-c566-list-stl-00-e-ag.htm" "t1205-c566-list-stl-00-e-ag.htm")
  ("t1205-c566-list-stl-00-e-ag.xht" "t1205-c566-list-stl-00-e-ag.xht")
  ("t1205-c566-list-stl-01-c-g.htm" "t1205-c566-list-stl-01-c-g.htm")
  ("t1205-c566-list-stl-01-c-g.xht" "t1205-c566-list-stl-01-c-g.xht")
  ("t1401-c531-color-00-a.htm" "t1401-c531-color-00-a.htm")
  ("t1401-c531-color-00-a.xht" "t1401-c531-color-00-a.xht")
  ("t1402-c45-bg-canvas-00-b.htm" "t1402-c45-bg-canvas-00-b.htm")
  ("t1402-c45-bg-canvas-00-b.xht" "t1402-c45-bg-canvas-00-b.xht")
  ("t140201-c532-bgcolor-00-a.htm" "t140201-c532-bgcolor-00-a.htm")
  ("t140201-c532-bgcolor-00-a.xht" "t140201-c532-bgcolor-00-a.xht")
  ("t140201-c532-bgcolor-01-b.htm" "t140201-c532-bgcolor-01-b.htm")
  ("t140201-c532-bgcolor-01-b.xht" "t140201-c532-bgcolor-01-b.xht")
  ("t140201-c533-bgimage-00-a.htm" "t140201-c533-bgimage-00-a.htm")
  ("t140201-c533-bgimage-00-a.xht" "t140201-c533-bgimage-00-a.xht")
  ("t140201-c533-bgimage-01-b-g.htm" "t140201-c533-bgimage-01-b-g.htm")
  ("t140201-c533-bgimage-01-b-g.xht" "t140201-c533-bgimage-01-b-g.xht")
  ("t140201-c534-bgre-00-b-ag.htm" "t140201-c534-bgre-00-b-ag.htm")
  ("t140201-c534-bgre-00-b-ag.xht" "t140201-c534-bgre-00-b-ag.xht")
  ("t140201-c534-bgre-01-b-ag.htm" "t140201-c534-bgre-01-b-ag.htm")
  ("t140201-c534-bgre-01-b-ag.xht" "t140201-c534-bgre-01-b-ag.xht")
  ("t140201-c534-bgreps-00-c-ag.htm" "t140201-c534-bgreps-00-c-ag.htm")
  ("t140201-c534-bgreps-00-c-ag.xht" "t140201-c534-bgreps-00-c-ag.xht")
  ("t140201-c534-bgreps-01-c-ag.htm" "t140201-c534-bgreps-01-c-ag.htm")
  ("t140201-c534-bgreps-01-c-ag.xht" "t140201-c534-bgreps-01-c-ag.xht")
  ("t140201-c534-bgreps-02-c-ag.htm" "t140201-c534-bgreps-02-c-ag.htm")
  ("t140201-c534-bgreps-02-c-ag.xht" "t140201-c534-bgreps-02-c-ag.xht")
  ("t140201-c534-bgreps-03-c-ag.htm" "t140201-c534-bgreps-03-c-ag.htm")
  ("t140201-c534-bgreps-03-c-ag.xht" "t140201-c534-bgreps-03-c-ag.xht")
  ("t140201-c534-bgreps-04-c-ag.htm" "t140201-c534-bgreps-04-c-ag.htm")
  ("t140201-c534-bgreps-04-c-ag.xht" "t140201-c534-bgreps-04-c-ag.xht")
  ("t140201-c534-bgreps-05-c-ag.htm" "t140201-c534-bgreps-05-c-ag.htm")
  ("t140201-c534-bgreps-05-c-ag.xht" "t140201-c534-bgreps-05-c-ag.xht")
  ("t140201-c535-bg-fixd-00-b-g.htm" "t140201-c535-bg-fixd-00-b-g.htm")
  ("t140201-c535-bg-fixd-00-b-g.xht" "t140201-c535-bg-fixd-00-b-g.xht")
  ;("t140201-c536-bgpos-00-b-ag.htm" "t140201-c536-bgpos-00-b-ag.htm")   ; TODO : huh?
  ;("t140201-c536-bgpos-00-b-ag.xht" "t140201-c536-bgpos-00-b-ag.xht")
  ;("t140201-c536-bgpos-01-b-ag.htm" "t140201-c536-bgpos-01-b-ag.htm")   ; TODO: huh?
  ;("t140201-c536-bgpos-01-b-ag.xht" "t140201-c536-bgpos-01-b-ag.xht")
  ("t140201-c537-bgfxps-00-c-ag.htm" "t140201-c537-bgfxps-00-c-ag.htm")
  ("t140201-c537-bgfxps-00-c-ag.xht" "t140201-c537-bgfxps-00-c-ag.xht")
  ("t1503-c522-font-family-00-b.htm" "t1503-c522-font-family-00-b.htm")
  ("t1503-c522-font-family-00-b.xht" "t1503-c522-font-family-00-b.xht")
  ("t1504-c523-font-style-00-b.htm" "t1504-c523-font-style-00-b.htm")
  ("t1504-c523-font-style-00-b.xht" "t1504-c523-font-style-00-b.xht")
  ("t1504-c543-txt-decor-00-d-g.htm" "t1504-c543-txt-decor-00-d-g.htm")
  ("t1504-c543-txt-decor-00-d-g.xht" "t1504-c543-txt-decor-00-d-g.xht")
  ("t1505-c524-font-var-00-b.htm" "t1505-c524-font-var-00-b.htm")
  ("t1505-c524-font-var-00-b.xht" "t1505-c524-font-var-00-b.xht")
  ("t1506-c525-font-wt-00-b.htm" "t1506-c525-font-wt-00-b.htm")
  ("t1506-c525-font-wt-00-b.xht" "t1506-c525-font-wt-00-b.xht")
  ("t1507-c526-font-sz-00-b.htm" "t1507-c526-font-sz-00-b.htm")
  ("t1507-c526-font-sz-00-b.xht" "t1507-c526-font-sz-00-b.xht")
  ("t1507-c526-font-sz-01-b-a.htm" "t1507-c526-font-sz-01-b-a.htm")
  ("t1507-c526-font-sz-01-b-a.xht" "t1507-c526-font-sz-01-b-a.xht")
  ("t1507-c526-font-sz-02-b-a.htm" "t1507-c526-font-sz-02-b-a.htm")
  ("t1507-c526-font-sz-02-b-a.xht" "t1507-c526-font-sz-02-b-a.xht")
  ("t1507-c526-font-sz-03-f-a.htm" "t1507-c526-font-sz-03-f-a.htm")
  ("t1507-c526-font-sz-03-f-a.xht" "t1507-c526-font-sz-03-f-a.xht")
  ("t1508-c527-font-00-b.htm" "t1508-c527-font-00-b.htm")
  ("t1508-c527-font-00-b.xht" "t1508-c527-font-00-b.xht")
  ("t1508-c527-font-01-b.htm" "t1508-c527-font-01-b.htm")
  ("t1508-c527-font-01-b.xht" "t1508-c527-font-01-b.xht")
  ("t1508-c527-font-02-b.htm" "t1508-c527-font-02-b.htm")
  ("t1508-c527-font-02-b.xht" "t1508-c527-font-02-b.xht")
  ("t1508-c527-font-03-b.htm" "t1508-c527-font-03-b.htm")
  ("t1508-c527-font-03-b.xht" "t1508-c527-font-03-b.xht")
  ("t1508-c527-font-04-b.htm" "t1508-c527-font-04-b.htm")
  ("t1508-c527-font-04-b.xht" "t1508-c527-font-04-b.xht")
  ("t1508-c527-font-05-b.htm" "t1508-c527-font-05-b.htm")
  ("t1508-c527-font-05-b.xht" "t1508-c527-font-05-b.xht")
  ("t1508-c527-font-06-b.htm" "t1508-c527-font-06-b.htm")
  ("t1508-c527-font-06-b.xht" "t1508-c527-font-06-b.xht")
  ("t1508-c527-font-07-b.htm" "t1508-c527-font-07-b.htm")
  ("t1508-c527-font-07-b.xht" "t1508-c527-font-07-b.xht")
  ("t1508-c527-font-08-b.htm" "t1508-c527-font-08-b.htm")
  ("t1508-c527-font-08-b.xht" "t1508-c527-font-08-b.xht")
  ("t1508-c527-font-09-b.htm" "t1508-c527-font-09-b.htm")
  ("t1508-c527-font-09-b.xht" "t1508-c527-font-09-b.xht")
  ("t1508-c527-font-10-c.htm" "t1508-c527-font-10-c.htm")
  ("t1508-c527-font-10-c.xht" "t1508-c527-font-10-c.xht")
  ("t1601-c547-indent-00-b-a.htm" "t1601-c547-indent-00-b-a.htm")
  ("t1601-c547-indent-00-b-a.xht" "t1601-c547-indent-00-b-a.xht")
  ("t1601-c547-indent-01-d.htm" "t1601-c547-indent-01-d.htm")
  ("t1601-c547-indent-01-d.xht" "t1601-c547-indent-01-d.xht")
  ("t1602-c43-center-00-d-ag.htm" "t1602-c43-center-00-d-ag.htm")
  ("t1602-c43-center-00-d-ag.xht" "t1602-c43-center-00-d-ag.xht")
  ("t1602-c546-txt-align-00-b.htm" "t1602-c546-txt-align-00-b.htm")
  ("t1602-c546-txt-align-00-b.xht" "t1602-c546-txt-align-00-b.xht")
  ("t1604-c541-word-sp-00-b-a.htm" "t1604-c541-word-sp-00-b-a.htm")
  ("t1604-c541-word-sp-00-b-a.xht" "t1604-c541-word-sp-00-b-a.xht")
  ("t1604-c541-word-sp-01-b-a.htm" "t1604-c541-word-sp-01-b-a.htm")
  ("t1604-c541-word-sp-01-b-a.xht" "t1604-c541-word-sp-01-b-a.xht")
  ("t1604-c542-letter-sp-00-b-a.htm" "t1604-c542-letter-sp-00-b-a.htm")
  ("t1604-c542-letter-sp-00-b-a.xht" "t1604-c542-letter-sp-00-b-a.xht")
  ("t1604-c542-letter-sp-01-b-a.htm" "t1604-c542-letter-sp-01-b-a.htm")
  ("t1604-c542-letter-sp-01-b-a.xht" "t1604-c542-letter-sp-01-b-a.xht")
  ("t1605-c545-txttrans-00-b-ag.htm" "t1605-c545-txttrans-00-b-ag.htm")
  ("t1605-c545-txttrans-00-b-ag.xht" "t1605-c545-txttrans-00-b-ag.xht")
  ("t1606-c562-white-sp-00-b-ag.htm" "t1606-c562-white-sp-00-b-ag.htm")
  ("t1606-c562-white-sp-00-b-ag.xht" "t1606-c562-white-sp-00-b-ag.xht")))


;;; Filter out all non-htm and xht links

(define test-links 
  (filter (lambda (url+text)
            (match url+text
              [(url text)
               (or (regexp-match ".*htm" url)
                   (regexp-match ".*xht" url))]))
          all-links))

(require (planet "port.ss" ("schematics" "port.plt" 1 0)))

(define (link->text url+text)
  (match url+text
    [(url text)
     (let ((port (get-pure-port 
                  (string->url 
                   (string-append base-url url)))))
       (begin0
         (port->string port)
         (close-input-port port)))]))

(require (lib "list.ss" "srfi" "1"))


(define page "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\">\n<html>\n <head>\n  <title>CSS 2.1 Test Suite: Comments</title>\n  <style type=\"text/css\">\n   body { color: red; }\n   /* This is a CSS1 comment. */\n   .one {color: green;} /* Another comment */\n   /* The following should not be used:\n   .two {color: red;} */\n   .three {color: green; /* color: red; */}\n   /**\n   .four {color: red;} */\n   .five {color: green;}\n   /**/\n   .six {color: green;}\n   /*********/\n   .seven {color: green;}\n   /* a comment **/\n   .eight {color: green;}\n  </style>\n  <link title=\"4.1.9 Comments\" href=\"http://www.w3.org/TR/CSS21/syndata.html#comments\" rel=\"help\">\n </head>\n <body>\n  <p class=\"one\">\n   This line should be green.\n  </p>\n  <p class=\"three\">\n   This line should be green.\n  </p>\n  <p class=\"five\">\n   This line should be green.\n  </p>\n  <p class=\"six\">\n   This line should be green.\n  </p>\n  <p class=\"seven\">\n   This line should be green.\n  </p>\n  <p class=\"eight\">\n   This line should be green.\n  </p>\n </body>\n</html>")

(define (extract-embedded-stylesheet page)
  (cadr (regexp-match ".*<style.*>(.*)</style>.*" page)))

(require "../lexer.scm")

(define (test-link link)
  (display link) (newline)
  (let ([page (extract-embedded-stylesheet (link->text link))])
    (display page) (display "--\n")
    (display (parse-css-string page)) (newline)
    (display "-----\n")))

(for-each test-link
          (reverse test-links))