[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] I have paragraphs that contains MarkDown. Is there a way in the XSLT to process them as markdown?
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
|
Attachment:
signature.asc
Description: Message signed with OpenPGP
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]