[erlang-questions] xsltproc - erl_doc runtime error: Variable 'stylesheet' has not been declared.
Kenneth Lundin
kenneth@REDACTED
Fri Dec 4 17:29:11 CET 2015
Hi,
Look in https://github.com/erlang/otp/blob/maint/make/otp_release_targets.mk
for an example of how to call xsltproc. The variable stylesheet is supposed
to be given as a stringparam to the call of xslt.
/Kenneth
Den 4 dec 2015 16:30 skrev <borja.carbo@REDACTED>:
>
> Trying to follow the examples from the erl_doc documentation I have found
> the error from the title and I reproduce here.
>
>
> laptop@REDACTED:~/MyProjects/InErlang/lib/basura-1.0.0/doc$ xsltproc
> --noout \
>
>> --stringparam outdir . \
>> --stringparam topdocdir . \
>> --stringparam pdfdir . \
>> --xinclude \
>> --stringparam docgen /usr/local/lib/erlang/lib/erl_docgen-0.4 \
>> --stringparam gendate "December 5 2011" \
>> --stringparam appname application_example \
>> --stringparam appver 1.0.0 \
>> -path /usr/local/lib/erlang/lib/erl_docgen-0.4/priv/dtd \
>> -path /usr/local/lib/erlang/lib/erl_docgen-0.4/priv/dtd_html_entities \
>> /usr/local/lib/erlang/lib/erl_docgen-0.4/priv/xsl/db_html.xsl \
>> application_example.xml
>>
> runtime error: file
> /usr/local/lib/erlang/lib/erl_docgen-0.4/priv/xsl/db_html.xsl line 582
> element choose
> Variable 'stylesheet' has not been declared.
> laptop@REDACTED:~/MyProjects/InErlang/lib/basura-1.0.0/doc$
>
>
> 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.
>
> The command generated a small file (attached and named
> "Application_Example_app.html") although meaningless.
>
> Is this a bug or simple I missed something?
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20151204/6e585540/attachment.htm>
More information about the erlang-questions
mailing list