aboutsummaryrefslogblamecommitdiffstats
path: root/lib/xmerl/doc/examples/mkdocs.erl
blob: 9faa12685bdc4972a7cd1870047f19434a3feb80 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                              
-module(mkdocs).
-author('[email protected]').

-export([run/1]).

run([InFile, OutFile])->
    {A,_}=xmerl_scan:file(InFile,[{fetch_fun, fun(DTDSpec,S) -> {ok,S} end}]),
      B = sdocbook2xhtml:process_xml(A),
      file:write_file(OutFile,[B]).