Nested PMC references #11
Replies: 2 comments 1 reply
-
I think this is an issue with xargs. xargs has a limit to the number of arguments it will take, and if it receives more, it will split the argument list between multiple calls to the specified program. This means you end up getting multiple separate output documents from s1kd-flatten. You can tweak the behaviour of xargs with options like --max-args for the maximum number of arguments, if you know roughly the number of DMs and PMs you have. But for a more flexible solution, you'd want to use the --list option that many of the s1kd-tools have, which makes it read arguments from stdin similar to xargs, but without any limit (aside from available computer memory of course). However, it seems the s1kd-flatten tool was never given this option. I'm going to look into this and hopefully implement a --list option for s1kd-flatten soon. |
Beta Was this translation helpful? Give feedback.
-
Added in d948cad. You should be able to change your Makefile to this: END_SOURCE.xml: custom
s1kd-ls -DP $< | s1kd-flatten -l -v -p | xml-format -o $@ |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm currently dealing with a very large S1000D project that contains a folder structure like the following:
My goal would be to flatten the whole thing to XML using a variation of the Build.sh file packaged in the 2PDF project but then convert it to HTML using XSL. My current Build.sh looks like:
Finishing it off in my make file with:
All of this seems to generally go through. The custom folder contains all the DMC, PMC, ICN files I would normally expect, but the xml-format from the above returns:
The error seems to indicate bad source XML, but it seems off to me. Am I missing any steps for this process? Any help would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions