asciidoc-br not translated into <br/>

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

asciidoc-br not translated into <br/>

jnilo
Hello all
I am stuck with the following problem:
I am trying to use webhelp.xsl to create my web help file.
In order to do that I am generating an xml file out of asciidoctor with the -b docbook option.
but the <?asciidoc-br?>  tags of the xml file - which are the translation of my + end-of line signs - are not translated in
new lines in the generated html files.
Where should I look ?
Cheers
Jacques
Reply | Threaded
Open this post in threaded view
|

Re: asciidoc-br not translated into <br/>

jnilo
OK I found it
I included in webhelp-common.xsl the following code:
<!-- Line break --> 
<xsl:template match="processing-instruction('asciidoc-br')"> 
  <br/> 
</xsl:template>
But perhaps there is a cleaner way to do that than modifying the original xsl code ...
Jacques
Reply | Threaded
Open this post in threaded view
|

Re: asciidoc-br not translated into <br/>

mojavelinux
Administrator
Nope, you did exactly what is required. The DocBook toolchain does not know about the AsciiDoc processing instructions, so you have to add them yourself.

a2x has long done this by providing it's own modified XSLT. However, it did not address the webhelp format. You can see how a2x does it here:


Cheers,

-Dan

On Sat, Jul 4, 2015 at 8:27 AM, jnilo [via Asciidoctor :: Discussion] <[hidden email]> wrote:
OK I found it
I included in webhelp-common.xsl the following code:
<!-- Line break --> 
<xsl:template match="processing-instruction('asciidoc-br')"> 
  <br/> 
</xsl:template>
But perhaps there is a cleaner way to do that than modifying the original xsl code ...
Jacques


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/asciidoc-br-not-translated-into-br-tp3474p3475.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--