Hello,
I have a project that has several individual sections that each need to be compiled independently. That’s simple; just specify the compile group and compile individually.
The problem I’m facing is that I have metadata associated with the containing folder of each section, such as the synopsis, or a custom-metadata specifying that section’s version. I’ve seen several other threads that discuss how that metadata isn’t available to the project, and when I’m generating plain text, I can get around that by creating my output file’s header in the “section layout” for the top directory of a section.
But now I have to generate html, and I can’t for the life of me figure out how generate it where that metadata is made available in the section of the resulting html file.
I’ve tried many things, and the closest I’ve come is using multimarkdown (I’m willing to convert my entire project to MMD if that’s what it takes). If I included the “Meta-Data” file with each section, I could just store the section meta-data in that, but that’s not really a great solution, because it would involve copying that Meta-Data file for each section, and updating each file if my requirements change. Not very maintainable.
The other thing I’m willing to try is this xslt template file. My idea is to include the document metadata in elements in the section layout, then use xslt to move it into the header with all the other metadata. I’d be okay with this, but I can’t figure out how to get xslt templates to work. The manual says:
But how? It doesn’t say what the meta-data key needs to be. Or if I include the template right there inside the meta-data value, or if I specify a file that contains the template. All my guesses have failed, and I can’t find any examples online.
I’ve also thought of somehow scrapping the generated html header entirely, and then handcrafting it myself, but I can’t figure out how to do that either (not without manually deleting the header after the file has been generated.)
I would be thankful for any advice for how I could accomplish what I’m trying to do. I’m close to giving up.
Thank you,
Flibbles