Hello Jirka,

This works out fantastic.  Thank you!

I used the following XSLT:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
    xmlns:xs="http://www.w3.org/2001/XMLSchema";
    xmlns:md2doc="http://www.markdown2docbook.com/ns/md2doc";
    xmlns:db="http://docbook.org/ns/docbook";
    exclude-result-prefixes="xs"
    version="2.0">
    <xsl:import href="src/md2doc-functions.xsl"/>
    <xsl:template match="db:para[@role='description']">
        <xsl:copy-of select="md2doc:convert(.,'','')"/>
    </xsl:template>
    <xsl:template match="@*|node()">
        <xsl:copy>
            <xsl:apply-templates select="@*|node()"/>
        </xsl:copy>
    </xsl:template>
</xsl:stylesheet>


Loren



> On Feb 11, 2019, at 9:37 AM, Loren Cahlander <[email protected]> 
> wrote:
> 
> Hello Jirka,
> 
> Thank you for this.  I will try it out.
> 
> Loren
> 
> 
>> On Feb 11, 2019, at 9:14 AM, Jirka Kosek <[email protected]> wrote:
>> 
>> On 7.2.2019 17:22, Loren Cahlander wrote:
>>> The entry for the param of $files is in MarkDown format.  Is there a way 
>>> for the MarkDown to be processed when generating the PDF?
>> 
>> Hi Loren,
>> 
>> student of my wrote XSLT 2 transform that can parse Markdown and convert
>> it to DocBook:
>> 
>> https://github.com/MSmid/markdown2docbook
>> 
>> You can add preprocessing step that would expand Markdown to DocBook
>> prior normal DocBook processing.
>> 
>>                              Jirka
>> 
>> --
>> ------------------------------------------------------------------
>> Jirka Kosek      e-mail: [email protected]      http://xmlguru.cz
>> ------------------------------------------------------------------
>>    Professional XML and Web consulting and training services
>> DocBook/DITA customization, custom XSLT/XSL-FO document processing
>> ------------------------------------------------------------------
>>   Bringing you XML Prague conference    http://xmlprague.cz
>> ------------------------------------------------------------------
>> 
> 

Attachment: signature.asc
Description: Message signed with OpenPGP

Reply via email to