I might have spoken too soon, this doesn&#39;t seem to work:<br><br>(module foo mzscheme<br><div class="Ih2E3d"> &nbsp; (require (planet &quot;sxml.ss&quot; (&quot;lizorkin&quot; &quot;sxml.plt&quot; 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);"> &nbsp; (apply</span><br style="color: rgb(102, 51, 102);"><span style="color: rgb(102, 51, 102);"> &nbsp; &nbsp;string-append</span><br style="color: rgb(102, 51, 102);">
<span style="color: rgb(102, 51, 102);"> &nbsp; &nbsp;(sxml:clean-feed</span><br style="color: rgb(102, 51, 102);"><span style="color: rgb(102, 51, 102);"> &nbsp; &nbsp; (stx:transform-dynamic</span><br style="color: rgb(102, 51, 102);"><span style="color: rgb(102, 51, 102);">
 &nbsp; &nbsp; &nbsp;(sxml:add-parents</span><br style="color: rgb(102, 51, 102);"><span style="color: rgb(102, 51, 102);"> &nbsp; &nbsp; &nbsp; (sxml:document &quot;</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);">&quot;))</span><br style="color: rgb(102, 51, 102);"><span style="color: rgb(102, 51, 102);"> &nbsp; &nbsp; &nbsp;(stx:make-stx-stylesheet</span><br style="color: rgb(102, 51, 102);">
<span style="color: rgb(102, 51, 102);"> &nbsp; &nbsp; &nbsp; (sxml:document</span><br style="color: rgb(102, 51, 102);"><span style="color: rgb(102, 51, 102);"> &nbsp; &nbsp; &nbsp; &nbsp;&quot;</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);">&quot;</span><br style="color: rgb(102, 51, 102);"><span style="color: rgb(102, 51, 102);"> &nbsp; &nbsp; &nbsp; &nbsp;&#39;((xsl . &quot;</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);">&quot;))))))) ;originaly had a leading space &quot; </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);">&quot;</span><br style="color: rgb(102, 51, 102);"><span style="color: rgb(102, 51, 102);"> &nbsp; )</span><br><br></div>(provide test))<br><br><br>
(module foo-user mzscheme<br> &nbsp; (require (file &quot;foo.ss&quot;))<br><br> &nbsp; (display test)<br> &nbsp; )<br><font color="#888888"><br></font><br><br><br><div class="gmail_quote">On Jan 13, 2008 5:41 PM, John Clements &lt;<a href="mailto:clements@brinckerhoff.org">
clements@brinckerhoff.org</a>&gt; 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 class="Ih2E3d"><br>On Jan 12, 2008, at 8:20 PM, Eric Biunno wrote:
<br><br>&gt; Hi, I&#39;m a little confused. The following code works as expected:<br>&gt;<br>&gt; (require (planet &quot;sxml.ss&quot; (&quot;lizorkin&quot; &quot;sxml.plt&quot; 1 4)))<br>&gt;<br>&gt; &nbsp; (define test<br>&gt; &nbsp; &nbsp; (apply
<br>&gt; &nbsp;string-append<br>&gt; &nbsp;(sxml:clean-feed<br>&gt; &nbsp; &nbsp;(stx:transform-dynamic<br>&gt; &nbsp; &nbsp; &nbsp;(sxml:add-parents<br>&gt; &nbsp; &nbsp; &nbsp; (sxml:document &quot;<a href="http://modis.ispras.ru/Lizorkin/XML/poem.xml" target="_blank">
http://modis.ispras.ru/Lizorkin/XML/poem.xml</a>&quot;))<br>&gt; &nbsp; &nbsp; &nbsp;(stx:make-stx-stylesheet<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp;(sxml:document<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&quot;<a href="http://modis.ispras.ru/Lizorkin/XML/poem2html.xsl" target="_blank">
http://modis.ispras.ru/Lizorkin/XML/poem2html.xsl</a>&quot;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#39;((xsl . &quot; <a href="http://www.w3.org/1999/XSL/Transform" target="_blank">http://www.w3.org/1999/XSL/Transform</a>&quot;)))))))<br>&gt; &nbsp; &nbsp;)
<br>&gt;<br>&gt; (test)<br>&gt;<br>&gt; But when I create a module with this code and then call (test) from<br>&gt; another file I get the following error:<br>&gt; .plt-scheme/planet/300/371/cache/lizorkin/sxml.plt/1/4/stx-
<br>&gt; engine.ss::12970: reference to undefined identifier: sxpath<br><br></div>Something&#39;s not right, here.<br><br>1) The code you&#39;ve supplied will not evaluate in the MzScheme<br>language, because &#39;test&#39; is bound to a string, and not to a procedure.
<br>2) When I remove the parens around &#39;test&#39;, this code works fine and<br>displays the expected string.<br>3) When I wrap it in a module and evaluate it, &#39;test&#39; is again bound<br>to the correct value.<br>
4) When I require this module from another one and fetch the value of<br>&#39;test&#39;, I again get the right value.<br><br>Here&#39;s the module that I generated:<br><br>(module foo mzscheme<br><div class="Ih2E3d"> &nbsp; (require (planet &quot;
sxml.ss&quot; (&quot;lizorkin&quot; &quot;sxml.plt&quot; 1 4)))<br><br>(define test<br> &nbsp; (apply<br> &nbsp; &nbsp;string-append<br> &nbsp; &nbsp;(sxml:clean-feed<br> &nbsp; &nbsp; (stx:transform-dynamic<br> &nbsp; &nbsp; &nbsp;(sxml:add-parents<br> &nbsp; &nbsp; &nbsp; (sxml:document &quot;
<a href="http://modis.ispras.ru/Lizorkin/XML/poem.xml" target="_blank">http://modis.ispras.ru/Lizorkin/XML/poem.xml</a>&quot;))<br> &nbsp; &nbsp; &nbsp;(stx:make-stx-stylesheet<br> &nbsp; &nbsp; &nbsp; (sxml:document<br> &nbsp; &nbsp; &nbsp; &nbsp;&quot;<a href="http://modis.ispras.ru/Lizorkin/XML/poem2html.xsl" target="_blank">
http://modis.ispras.ru/Lizorkin/XML/poem2html.xsl</a>&quot;<br> &nbsp; &nbsp; &nbsp; &nbsp;&#39;((xsl . &quot; <a href="http://www.w3.org/1999/XSL/Transform" target="_blank">http://www.w3.org/1999/XSL/Transform</a>&quot;)))))))<br> &nbsp; )<br><br>
</div>(provide test))<br><br><br>(module foo-user mzscheme<br> &nbsp; (require (file &quot;foo.ss&quot;))<br><br> &nbsp; (display test)<br> &nbsp; )<br><font color="#888888"><br>John Clements<br><br></font></blockquote></div><br>