bobstayton / LiveRNC

Perl program for converting a Compact RelaxNG schema file into HTML hypertext.
1 stars 1 forks source link

RNC file list doesn't get created #2

Open nakohdo opened 9 years ago

nakohdo commented 9 years ago

Hi,

I've tried the script with task.rnc from the DITA RNC files. The script runs through but the list of all referenced RNC files doesn't get created (compare the output from the DTD version of the script: http://www.sagehill.net/livedtd/dita1.2/task.dtd/index.html). The included files seem to get recognized and parsed because the links point to the right target, for example "commonElements.mod.rnc.html#NPDeftext". However, the file itself (commonElements.mod.rnc.html) isn't created and included in the output.

I suppose this is caused by the different two-pass process compared to the DTD version:

The file list @Files gets filled in pass 1 in the parsefile() function but is cleared before pass 2:

# Clear the Files array    
@Files = ();

Deactivating that line creates at least the list of files, but the output files themselves don't get created.

livedtd_livernc

task rnc created html files

bobstayton commented 9 years ago

Hi Ralf, I'm not clear on exactly what is missing. You say "the list of all referenced RNC files doesn't get created". That would be the file named FileList.html. But then you say that commonElements.mod.rnc.html is missing, which is one of the RNC files, not the list of files. So which files are missing?

I'm not sure I'm going to be able to help much, as I don't have a working installation of Perl on my current system, so I can't even run the script right now, but I'll try to get that working.

Can you send me the RNC files that you are using for input, and the output files that it does create? From where did you download the DITA RNC files?

Bob Stayton Sagehill Enterprises bobs@sagehill.net

On 5/23/2015 10:33 AM, Frank Ralf wrote:

Hi,

I've tried the script with task.rnc from the DITA RNC files. The script runs through but the list of all referenced RNC files doesn't get created (compare the output from the DTD version of the script: http://www.sagehill.net/livedtd/dita1.2/task.dtd/index.html). The included files seem to get recognized and parsed because the links point to the right target, for example "commonElements.mod.rnc.html#NPDeftext". However, the file itself (/commonElements.mod.rnc.html/) isn't created and included in the output.

I suppose this is caused by the different two-pass process compared to the DTD version:

The file list @Files gets filled in pass 1 in the /parsefile()/ function but is cleared before pass 2:

# Clear the Files array @Files = ();

Deactivating that line creates at least the list of files, but the output files themselves don't get created.

— Reply to this email directly or view it on GitHub https://github.com/bobstayton/LiveRNC/issues/2.

nakohdo commented 9 years ago

Hi Bob,

The DITA RNC files are available from https://code.google.com/p/dita-ng/source/browse/trunk/#trunk%2Forg.dita-ng.doctypes%2Frnc

The above screenshots show the difference between the output from LiveDTD and LiveRNC, both run against the DITA task.dtd and task.rnc respectively, and the list of generated files. I'll send you the output files by PM because GitHub doesn't allow uploading them.

Best regards, Frank