Outputting as raw text with custom xml tags

This forum is for all Flare issues related to styles, stylesheets and XML.

Outputting as raw text with custom xml tags

Postby bwofficer on Fri Feb 19, 2021 9:42 am

If I write an error code guide in Flare (for publishing as a PDF) can I also get Flare to compile the text from the error codes table in that guide and output it as a tagged text or customised xml file that the software engineer can import into his project to ensure the text remains consistent?

Alternatively, if the error code text is written and managed externally as an xml file can I somehow link the file into my user docs project in Flare so that I can treat the chunks of text in the external xml file as snippets I can insert into the error codes table in my user docs project?
Jr. Propeller Head
Posts: 3
Joined: Tue May 12, 2020 2:16 am

Re: Outputting as raw text with custom xml tags

Postby lc4466 on Fri Apr 16, 2021 9:01 am

I do this by building the xml files in flare and pulling in the content via snippets, ex:

Code: Select all
            <MadCap:snippetBlock src="..[url]" />

Then I publish out with the Clean XHTML target. In my case, the developers still have to use a script to translate to json from there, but that was a pretty straightforward script to build from my understanding.

I think using my method for your example there would still be two different topic files - the PDF guide and the xml file - but you could at least share the error text code between them. Not as quite as elegant as figuring out a way to do both in the same file but I couldn't get madcap to quite manage that in a way that consistently worked for my use case. If you figure out something different on your end though I'd love to hear what you did!
Propeller Head
Posts: 12
Joined: Tue Jun 18, 2019 10:20 am

Return to Styles, Stylesheets and XML

Who is online

Users browsing this forum: No registered users and 11 guests