extracting an index of faqs from the commentary

Claus Reinke claus.reinke at talk21.com
Wed Sep 12 16:55:40 EDT 2007


>>    http://validator.w3.org/
>> 
>> 68 errors for Compiler/Renamer, mostly in the side-bar, which is 
>> duplicated over all trak wiki pages, so could this be fixed, please (a 
>> simple search&replace, with checking,
>> to avoid replacing valid &entity; uses)?
> 
> Done.

thanks! there seem to be a few more issues, but since the wiki
content is edited in wiki format, rather than xhtml, they seem to 
be inherent in the wiki format translators and plugins?-(

here's one example, from the source of
http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/EntityTypes

    <p>
    Here are some per-flavour notes:
    <dl><dt><tt>TyVar</tt></dt><dd>is self explanatory.
    </p>
    </dd></dl>

note how the closing </p> comes too early. 

http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/CmmType

has some <font color=xxx>x</font>, without quotes around the
color attribute, which seems to lead to follow-on errors.

http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/CodeGen

has more of those spurious/early </p>s

http://hackage.haskell.org/trac/ghc/wiki/Commentary/PrimOps

has some open/close mismatches, at least one of which seems
to be in the autogenerated box listing headings on the page.

looks like something for trac's own tracker?-) i attach a list
(from running xsltproc over the urls in faq.xml), in case you 
want to forward it.

claus
-------------- next part --------------
http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/EntityTypes:208: parser error : Opening and ending tag mismatch: dd line 207 and p
</p>
    ^
http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/EntityTypes:209: parser error : Opening and ending tag mismatch: dl line 207 and dd
</dd></dl>
     ^
http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/EntityTypes:209: parser error : Opening and ending tag mismatch: p line 205 and dl
</dd></dl>
          ^
http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/CmmType:283: parser error : AttValue: " or ' expected
<font color=DarkOrchid>newtype</font> <font color=Green>GenCmm</font> <font colo
            ^
http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/CmmType:283: parser error : attributes construct error
<font color=DarkOrchid>newtype</font> <font color=Green>GenCmm</font> <font colo
            ^
http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/CmmType:283: parser error : Couldn't find end of Start Tag font line 283
<font color=DarkOrchid>newtype</font> <font color=Green>GenCmm</font> <font colo
            ^
http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/CmmType:283: parser error : Opening and ending tag mismatch: pre line 282 and font
<font color=DarkOrchid>newtype</font> <font color=Green>GenCmm</font> <font colo
                                     ^
http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/CmmType:283: parser error : AttValue: " or ' expected
<font color=DarkOrchid>newtype</font> <font color=Green>GenCmm</font> <font colo
                                                  ^
http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/CmmType:283: parser error : attributes construct error
<font color=DarkOrchid>newtype</font> <font color=Green>GenCmm</font> <font colo
                                                  ^
http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/CmmType:283: parser error : Couldn't find end of Start Tag font line 283
<font color=DarkOrchid>newtype</font> <font color=Green>GenCmm</font> <font colo
                                                  ^
http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/CmmType:283: parser error : Opening and ending tag mismatch: div line 126 and font
<font color=DarkOrchid>newtype</font> <font color=Green>GenCmm</font> <font colo
                                                                     ^
http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/CmmType:283: parser error : AttValue: " or ' expected
ont color=DarkOrchid>newtype</font> <font color=Green>GenCmm</font> <font color=
                                                                               ^
http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/CmmType:283: parser error : attributes construct error
ont color=DarkOrchid>newtype</font> <font color=Green>GenCmm</font> <font color=
                                                                               ^
http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/CmmType:283: parser error : Couldn't find end of Start Tag font line 283
ont color=DarkOrchid>newtype</font> <font color=Green>GenCmm</font> <font color=
                                                                               ^
http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/CmmType:283: parser error : Opening and ending tag mismatch: div line 125 and font
Orchid>newtype</font> <font color=Green>GenCmm</font> <font color=Black>d</font>
                                                                               ^
http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/CmmType:283: parser error : AttValue: " or ' expected
e</font> <font color=Green>GenCmm</font> <font color=Black>d</font> <font color=
                                                                               ^
http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/CmmType:283: parser error : attributes construct error
e</font> <font color=Green>GenCmm</font> <font color=Black>d</font> <font color=
                                                                               ^
http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/CmmType:283: parser error : Couldn't find end of Start Tag font line 283
e</font> <font color=Green>GenCmm</font> <font color=Black>d</font> <font color=
                                                                               ^
http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/CmmType:283: parser error : Opening and ending tag mismatch: div line 120 and font
 color=Green>GenCmm</font> <font color=Black>d</font> <font color=Black>i</font>
                                                                               ^
http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/CmmType:283: parser error : AttValue: " or ' expected
GenCmm</font> <font color=Black>d</font> <font color=Black>i</font> <font color=
                                                                               ^
http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/CmmType:283: parser error : attributes construct error
GenCmm</font> <font color=Black>d</font> <font color=Black>i</font> <font color=
                                                                               ^
http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/CmmType:283: parser error : Couldn't find end of Start Tag font line 283
GenCmm</font> <font color=Black>d</font> <font color=Black>i</font> <font color=
                                                                               ^
http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/CmmType:283: parser error : Opening and ending tag mismatch: div line 102 and font
 <font color=Black>d</font> <font color=Black>i</font> <font color=Blue>=</font>
                                                                               ^
http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/CmmType:283: parser error : AttValue: " or ' expected
Black>d</font> <font color=Black>i</font> <font color=Blue>=</font> <font color=
                                                                               ^
http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/CmmType:283: parser error : attributes construct error
Black>d</font> <font color=Black>i</font> <font color=Blue>=</font> <font color=
                                                                               ^
http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/CmmType:283: parser error : Couldn't find end of Start Tag font line 283
Black>d</font> <font color=Black>i</font> <font color=Blue>=</font> <font color=
                                                                               ^
http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/CmmType:283: parser error : Opening and ending tag mismatch: body line 38 and font
font color=Black>i</font> <font color=Blue>=</font> <font color=Green>Cmm</font>
                                                                               ^
http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/CmmType:283: parser error : AttValue: " or ' expected
ack>i</font> <font color=Blue>=</font> <font color=Green>Cmm</font> <font color=
                                                                               ^
http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/CmmType:283: parser error : attributes construct error
ack>i</font> <font color=Blue>=</font> <font color=Green>Cmm</font> <font color=
                                                                               ^
http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/CmmType:283: parser error : Couldn't find end of Start Tag font line 283
ack>i</font> <font color=Blue>=</font> <font color=Green>Cmm</font> <font color=
                                                                               ^
http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/CmmType:283: parser error : Opening and ending tag mismatch: html line 4 and font
<font color=Blue>=</font> <font color=Green>Cmm</font> <font color=Blue>[</font>
                                                                               ^
http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/CmmType:283: parser error : Extra content at the end of the document
<font color=Blue>=</font> <font color=Green>Cmm</font> <font color=Blue>[</font>
                                                                               ^
warning: failed to load external entity "http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/Core2Stg"
http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/CodeGen:291: parser error : Opening and ending tag mismatch: dd line 289 and p
</p>
    ^
http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/CodeGen:292: parser error : Opening and ending tag mismatch: dl line 275 and dd
</dd></dl>
     ^
http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/CodeGen:292: parser error : Opening and ending tag mismatch: p line 272 and dl
</dd></dl>
          ^
http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/CodeGen:339: parser error : Opening and ending tag mismatch: dd line 336 and p
</p>
    ^
http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/CodeGen:340: parser error : Opening and ending tag mismatch: dl line 332 and dd
</dd></dl>
     ^
http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/CodeGen:340: parser error : Opening and ending tag mismatch: p line 330 and dl
</dd></dl>
          ^
warning: failed to load external entity "http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/TemplateHaskell"
warning: failed to load external entity "http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/Finder"
http://hackage.haskell.org/trac/ghc/wiki/Commentary/PrimOps:136: parser error : Opening and ending tag mismatch: li line 128 and ol
<a href="#usage">usage</a></li></ol></li></ol></li></ol></div>
                                              ^
http://hackage.haskell.org/trac/ghc/wiki/Commentary/PrimOps:136: parser error : Opening and ending tag mismatch: ol line 128 and li
<a href="#usage">usage</a></li></ol></li></ol></li></ol></div>
                                                   ^
http://hackage.haskell.org/trac/ghc/wiki/Commentary/PrimOps:136: parser error : Opening and ending tag mismatch: li line 128 and ol
<a href="#usage">usage</a></li></ol></li></ol></li></ol></div>
                                                        ^
http://hackage.haskell.org/trac/ghc/wiki/Commentary/PrimOps:136: parser error : Opening and ending tag mismatch: ol line 128 and div
<a href="#usage">usage</a></li></ol></li></ol></li></ol></div>
                                                              ^
http://hackage.haskell.org/trac/ghc/wiki/Commentary/PrimOps:137: parser error : Opening and ending tag mismatch: div line 128 and p
</p>
    ^
http://hackage.haskell.org/trac/ghc/wiki/Commentary/PrimOps:248: parser error : Opening and ending tag mismatch: p line 126 and div
</div>
      ^
http://hackage.haskell.org/trac/ghc/wiki/Commentary/PrimOps:279: parser error : Opening and ending tag mismatch: div line 102 and body
 </body>
        ^
http://hackage.haskell.org/trac/ghc/wiki/Commentary/PrimOps:280: parser error : Opening and ending tag mismatch: body line 38 and html
</html>
       ^
http://hackage.haskell.org/trac/ghc/wiki/Commentary/PrimOps:282: parser error : Premature end of data in tag html line 4

^
warning: failed to load external entity "http://hackage.haskell.org/trac/ghc/wiki/Commentary/DynamicLinking"
warning: failed to load external entity "http://hackage.haskell.org/trac/ghc/wiki/Commentary/SharedLibraries"
warning: failed to load external entity "http://hackage.haskell.org/trac/ghc/wiki/Commentary/DebuggingGhcCrashes"


More information about the Cvs-ghc mailing list