It appears I'm really at a loss without the planet's htmlprag library,
I tried to set the file to R5RS but it wouldn't allow me to use the
planet's htmlprag library as it came up with "reference to undefined
identifier: require"... mustn't the file be set to module in order to
use require?  That's the impression I'm getting.  In other words,
whenever I received this error in the past, I realized the current file
wasn't set to module, so simply setting it to module corrected this
error... but if I set it back to module, I'm back at square one with
the mutable cons cells problem that plagues > v4 versions combined
with htmlprag.<br>
<br> In summary, here&#39;s what I have been trying and I&#39;m open to your suggestions:<br>&nbsp;
* I put the htmlprag.ss file locally, which is set to module... if I
reload it(F5), I get: &quot;expand: unbound identifier in module in:
set-cdr!&quot;<br>
&nbsp; * If this same file is r5rs, then I get: &quot;define-syntax: not allowed
in an expression context in: (define-syntax %htmlprag:testeez
(syntax-rules () ((_ x ...) (error &quot;Tests disabled.&quot;))))&quot;<br>&nbsp;
* In the calling file, I tried to call the library from the planet with
the require statement but this calling file had to be set to module, as
far as I know... and the error I received was the same set-cdr! as
above. <br>
&nbsp; * If I set the calling file to r5rs, I further cannot &#39;load&#39; the
local file and I receive the define-syntax error stated above.<br>&nbsp; * I rolled back to &lt; v4, specifically 372 and had the same define-syntax errors as above.<br>
<br>Can you recommend either a solution to this problem or maybe a
different way to parse html than this library altogether?&nbsp; I&#39;ve tried a
few other libraries, like SSAX from here: <br>&nbsp; <a href="http://okmij.org/ftp/Scheme/xml.html#HTML-parser" target="_blank">http://okmij.org/ftp/Scheme/xml.html#HTML-parser</a><br>
but this produces undefined errors in the provided source, such as
symbols being used but nowhere in the file are they defined... and I
checked for possible dependencies and didn&#39;t find any. <br><br>I&#39;m
trying to collect all available urls in the html and queue them for
analysis.&nbsp; The html should be allowed to be ill-constructed, or in
other words, I would like to acquire a library that is permissive of a
few missing html tags if the html is indeed missing them, which was my
original intention with SSAX(permissive parser), and further I had
hoped I could get htmlprag to work... <br>
<br>Thank you for your time and I look forward to your ideas,<br><font color="#888888">-Patrick<br></font>