I'm running DrScheme, version 371 [3m].<br>Language: Textual (MzScheme, includes R5RS).<br><br><div>when I evaluate this code:<br><br><span style="color: rgb(102, 51, 102);">(require (planet "sxml.ss" ("lizorkin" "
sxml.plt" 1 4)))</span><br style="color: rgb(102, 51, 102);"><span style="color: rgb(102, 51, 102);"> (define test</span><br style="color: rgb(102, 51, 102);"><span style="color: rgb(102, 51, 102);"> (apply</span><br style="color: rgb(102, 51, 102);">
<span style="color: rgb(102, 51, 102);"> string-append</span><br style="color: rgb(102, 51, 102);"> <span style="color: rgb(102, 51, 102);"> (sxml:clean-feed</span><br style="color: rgb(102, 51, 102);"><span style="color: rgb(102, 51, 102);">
(stx:transform-dynamic</span><br style="color: rgb(102, 51, 102);"><span style="color: rgb(102, 51, 102);"> (sxml:add-parents</span><br style="color: rgb(102, 51, 102);"><span style="color: rgb(102, 51, 102);"> (sxml:document "
</span><a style="color: rgb(102, 51, 102);" href="http://modis.ispras.ru/Lizorkin/XML/poem.xml" target="_blank">http://modis.ispras.ru/Lizorkin/XML/poem.xml</a><span style="color: rgb(102, 51, 102);">"))</span><br style="color: rgb(102, 51, 102);">
<span style="color: rgb(102, 51, 102);"> (stx:make-stx-stylesheet</span><br style="color: rgb(102, 51, 102);"> <span style="color: rgb(102, 51, 102);"> (sxml:document</span><br style="color: rgb(102, 51, 102);">
<span style="color: rgb(102, 51, 102);"> "</span><a style="color: rgb(102, 51, 102);" href="http://modis.ispras.ru/Lizorkin/XML/poem2html.xsl" target="_blank">http://modis.ispras.ru/Lizorkin/XML/poem2html.xsl</a>
<span style="color: rgb(102, 51, 102);">"</span><br style="color: rgb(102, 51, 102);"><span style="color: rgb(102, 51, 102);"> '((xsl . "</span><a style="color: rgb(102, 51, 102);" href="http://www.w3.org/1999/XSL/Transform" target="_blank">
http://www.w3.org/1999/XSL/Transform</a><span style="color: rgb(102, 51, 102);">"))))))) </span><br style="color: rgb(102, 51, 102);"><span style="color: rgb(102, 51, 102);"> )</span><br style="color: rgb(102, 51, 102);">
</div><span style="color: rgb(102, 51, 102);">(display test)</span><br><br>I get this (which is what I want):<br><html><head><title>The Lovesong of J. Alfred Prufrock</title></head><body><h1>The Lovesong of J. Alfred Prufrock</h1><p>Let us go then, you and I,<br/>When the evening is spread out against the sky<br/>Like a patient etherized upon a table:<br/></p><p>In the room the women come and go<br/>Talking of Michaelangelo.<br/></p><i>T. S. Eliot</i></body></html>
<br><br>when I evaluate this code:<br><br>;file foo.ss:<br><span style="color: rgb(102, 51, 102);">(module foo mzscheme</span><br style="color: rgb(102, 51, 102);"><span style="color: rgb(102, 51, 102);"> </span><br style="color: rgb(102, 51, 102);">
<span style="color: rgb(102, 51, 102);"> (require (planet "sxml.ss" ("lizorkin" "sxml.plt" 1 4)))</span><br style="color: rgb(102, 51, 102);"><span style="color: rgb(102, 51, 102);"> </span>
<br style="color: rgb(102, 51, 102);"><span style="color: rgb(102, 51, 102);"> (require (planet "sxml.ss" ("lizorkin" "sxml.plt" 1 4)))</span><br style="color: rgb(102, 51, 102);"><span style="color: rgb(102, 51, 102);">
(define test</span><br style="color: rgb(102, 51, 102);"><span style="color: rgb(102, 51, 102);"> (apply</span><br style="color: rgb(102, 51, 102);"><span style="color: rgb(102, 51, 102);"> string-append</span><br style="color: rgb(102, 51, 102);">
<span style="color: rgb(102, 51, 102);"> (sxml:clean-feed</span><br style="color: rgb(102, 51, 102);"><span style="color: rgb(102, 51, 102);"> (stx:transform-dynamic</span><br style="color: rgb(102, 51, 102);"><span style="color: rgb(102, 51, 102);">
(sxml:add-parents</span><br style="color: rgb(102, 51, 102);"><span style="color: rgb(102, 51, 102);"> (sxml:document "<a href="http://modis.ispras.ru/Lizorkin/XML/poem.xml">http://modis.ispras.ru/Lizorkin/XML/poem.xml
</a>"))</span><br style="color: rgb(102, 51, 102);"><span style="color: rgb(102, 51, 102);"> (stx:make-stx-stylesheet</span><br style="color: rgb(102, 51, 102);"><span style="color: rgb(102, 51, 102);"> (sxml:document
</span><br style="color: rgb(102, 51, 102);"><span style="color: rgb(102, 51, 102);"> "<a href="http://modis.ispras.ru/Lizorkin/XML/poem2html.xsl">http://modis.ispras.ru/Lizorkin/XML/poem2html.xsl</a>"</span>
<br style="color: rgb(102, 51, 102);"><span style="color: rgb(102, 51, 102);"> '((xsl . "<a href="http://www.w3.org/1999/XSL/Transform">http://www.w3.org/1999/XSL/Transform</a>"))))))) ;originaly had a leading space "
<a href="http://www.w3.org/1999/XSL/Transform">http://www.w3.org/1999/XSL/Transform</a>"</span><br style="color: rgb(102, 51, 102);"><span style="color: rgb(102, 51, 102);"> )</span><br style="color: rgb(102, 51, 102);">
<span style="color: rgb(102, 51, 102);"> (display test)</span><br style="color: rgb(102, 51, 102);"><span style="color: rgb(102, 51, 102);"> </span><br style="color: rgb(102, 51, 102);"><span style="color: rgb(102, 51, 102);">
(provide test) </span><br style="color: rgb(102, 51, 102);"><span style="color: rgb(102, 51, 102);"> )</span><br><br>;file foo-user.ss:<br><span style="color: rgb(102, 51, 102);">(require (file "foo.ss"))</span>
<br style="color: rgb(102, 51, 102);"><span style="color: rgb(102, 51, 102);">(display test)</span><br><br>I get this error:<br>. . ../../../.plt-scheme/planet/300/371/cache/lizorkin/sxml.plt/1/4/stx-engine.ss::12970: reference to undefined identifier: sxpath
<br><br>Note: Please make sure that there are no leading spaces in the strings that have the URLs of the xml/xsl pages.<br><br>Thanks for your time, I know this is frustrating.<br>Eric<br><br><br><div class="gmail_quote">
On Jan 14, 2008 6:12 PM, John Clements <<a href="mailto:clements@brinckerhoff.org">clements@brinckerhoff.org</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style=""><div class="Ih2E3d"><br><div><div>On Jan 14, 2008, at 3:08 PM, Eric Biunno wrote:</div><br><blockquote type="cite">I might have spoken too soon, this doesn't seem to work:<br><br>(module foo mzscheme<br>
<div> (require (planet "sxml.ss" ("lizorkin" "sxml.plt" 1 4)))<br><br><span style="color: rgb(102, 51, 102);"> (define test</span><br style="color: rgb(102, 51, 102);"><span style="color: rgb(102, 51, 102);">
(apply</span><br style="color: rgb(102, 51, 102);"><span style="color: rgb(102, 51, 102);"> string-append</span><br style="color: rgb(102, 51, 102);"> <span style="color: rgb(102, 51, 102);"> (sxml:clean-feed</span>
<br style="color: rgb(102, 51, 102);"><span style="color: rgb(102, 51, 102);"> (stx:transform-dynamic</span><br style="color: rgb(102, 51, 102);"><span style="color: rgb(102, 51, 102);"> (sxml:add-parents</span><br style="color: rgb(102, 51, 102);">
<span style="color: rgb(102, 51, 102);"> (sxml:document "</span><a style="color: rgb(102, 51, 102);" href="http://modis.ispras.ru/Lizorkin/XML/poem.xml" target="_blank"> http://modis.ispras.ru/Lizorkin/XML/poem.xml
</a><span style="color: rgb(102, 51, 102);">"))</span><br style="color: rgb(102, 51, 102);"><span style="color: rgb(102, 51, 102);"> (stx:make-stx-stylesheet</span><br style="color: rgb(102, 51, 102);"> <span style="color: rgb(102, 51, 102);">
(sxml:document</span><br style="color: rgb(102, 51, 102);"><span style="color: rgb(102, 51, 102);"> "</span><a style="color: rgb(102, 51, 102);" href="http://modis.ispras.ru/Lizorkin/XML/poem2html.xsl" target="_blank">
http://modis.ispras.ru/Lizorkin/XML/poem2html.xsl</a><span style="color: rgb(102, 51, 102);">"</span><br style="color: rgb(102, 51, 102);"><span style="color: rgb(102, 51, 102);"> '((xsl . "</span><a style="color: rgb(102, 51, 102);" href="http://www.w3.org/1999/XSL/Transform" target="_blank">
http://www.w3.org/1999/XSL/Transform</a><span style="color: rgb(102, 51, 102);">"))))))) ;originaly had a leading space " </span><a style="color: rgb(102, 51, 102);" href="http://www.w3.org/1999/XSL/Transform" target="_blank">
http://www.w3.org/1999/XSL/Transform</a><span style="color: rgb(102, 51, 102);">"</span><br style="color: rgb(102, 51, 102);"><span style="color: rgb(102, 51, 102);"> )</span><br><br></div>(provide test))<br><br><br>
(module foo-user mzscheme<br> (require (file "foo.ss"))<br><br> (display test)<br> )</blockquote><br></div></div><div>More details, please. What language level are you running in, what version of drscheme are you using, what (if anything) are you evaluating in the interactions window, etc.
</div><font color="#888888"><div><br></div><div>John</div><div><br></div></font></div></blockquote></div><br>