<p dir="ltr">Hi,</p>
<p dir="ltr">Look in <a href="https://github.com/erlang/otp/blob/maint/make/otp_release_targets.mk">https://github.com/erlang/otp/blob/maint/make/otp_release_targets.mk</a> for an example of how to call xsltproc. The variable stylesheet is supposed to be given as a stringparam to the call of xslt.</p>
<p dir="ltr">/Kenneth</p>
<div class="gmail_quote">Den 4 dec 2015 16:30 skrev <<a href="mailto:borja.carbo@narval-collections.com">borja.carbo@narval-collections.com</a>>:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Trying to follow the examples from the erl_doc documentation I have found the error from the title and I reproduce here.<br>
<br>
<br>
laptop@Kubuntu-1:~/MyProjects/InErlang/lib/basura-1.0.0/doc$ xsltproc --noout \<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
--stringparam outdir . \<br>
--stringparam topdocdir . \<br>
--stringparam pdfdir . \<br>
--xinclude \<br>
--stringparam docgen /usr/local/lib/erlang/lib/erl_docgen-0.4 \<br>
--stringparam gendate "December 5 2011" \<br>
--stringparam appname application_example \<br>
--stringparam appver 1.0.0 \<br>
-path /usr/local/lib/erlang/lib/erl_docgen-0.4/priv/dtd \<br>
-path /usr/local/lib/erlang/lib/erl_docgen-0.4/priv/dtd_html_entities \<br>
/usr/local/lib/erlang/lib/erl_docgen-0.4/priv/xsl/db_html.xsl \<br>
application_example.xml<br>
</blockquote>
runtime error: file /usr/local/lib/erlang/lib/erl_docgen-0.4/priv/xsl/db_html.xsl line 582 element choose<br>
Variable 'stylesheet' has not been declared.<br>
laptop@Kubuntu-1:~/MyProjects/InErlang/lib/basura-1.0.0/doc$<br>
<br>
<br>
The file I used is just a simple modification of the example in the same documentation. Attached and named "application_example.xml". file placed in the same directory from where the command is executed.<br>
<br>
The command generated a small file (attached and named "Application_Example_app.html") although meaningless.<br>
<br>
Is this a bug or simple I missed something?<br>
<br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div>