I have the following in my project.ptx:
<target name="solutions">
<format>custom</format>
<source>pretext/cs20-thinkcspy.ptx</source>
<publication>publication/solution_to_print.xml</publication>
<xsl>xsl/solution-manual.xsl</xsl>
<output-dir>output/solutions</output-dir>
</target>
The solution_to_print.xml file is as follows:
<?xml version="1.0" encoding="UTF-8" ?>
<publication>
<!-- directories are relative to the main source PreTeXt file -->
<source>
<directories external="../assets" generated="../generated-assets"/>
</source>
</publication>
(same directories specification as the successful html/web build)
When I try pretext build solutions, I get this:
Building with custom xsl /home/david/comsc020/cs20-thinkcspy/xsl/solution-manual.xsl sp
ecified in project.ptx
Preparing to build into /home/david/comsc020/cs20-thinkcspy/output/solutions.
Now building with custom /tmp/tmpagp2xldr/solution-manual.xsl into /home/david/comsc020
/cs20-thinkcspy/output/solutions
XSL conversion of /home/david/comsc020/cs20-thinkcspy/pretext/cs20-thinkcspy.ptx by /tm
p/tmpagp2xldr/solution-manual.xsl
comprehensive messages, warnings, and errors:
* failed to load external entity "/home/david/comsc020/cs20-thinkcspy/pretext/image
s/datafile/weather_file0.xml"
* failed to load external entity "/home/david/comsc020/cs20-thinkcspy/pretext/image
s/datafile/weather_file1.xml"
* failed to load external entity "/home/david/comsc020/cs20-thinkcspy/pretext/image
s/datafile/weather_file2.xml"
* failed to load external entity "/home/david/comsc020/cs20-thinkcspy/pretext/image
s/datafile/weather_file3.xml"
* failed to load external entity "/home/david/comsc020/cs20-thinkcspy/pretext/image
s/datafile/weather_file4.xml"
* failed to load external entity "/home/david/comsc020/cs20-thinkcspy/pretext/image
s/datafile/bad_data_file.xml"
* PTX:DEPRECATE: (2022-10-24) the latex.pageref string parameter has been replaced
by the latex/@pageref entry in the publication file. We will attempt to honor your
intent.
I don’t get the “failed to load external entity“ errors when building for web.