<div>Greetings everyone, and here is my first question.</div>
<div> </div>
<div>I have a wiki in which I am showing a large number of BNF syntax diagrams. That works fine, with markup looking like this:</div>
<div> </div>
<div><font face="courier new,monospace">>>syntax<<</font></div>
<div><font face="courier new,monospace">(:linebreaks:)
<div>CALL ''<[[qualified-procedure-name->#qualified-procedure-name]]>'' ( [ <[[value-expression->Expressions#value-expression]]> {, <[[value-expression->Expressions#value-expression]]>} ] )</div>
</font></div>
<div><font face="courier new,monospace"></font> </div>
<div><font face="courier new,monospace"><qualified-procedure-name> ::= [[#qualified_procedure_name]] [ ''catalog-name''.[''schema-name''.[''procedure-name''[=]]]=]
<div>(:nolinebreaks:)</div>
<div>>><<</div></font></div>
<div> </div>
<div>which renders as:</div>
<div>
<div style="BORDER-RIGHT: 1px dotted; BORDER-TOP: 1px dotted; MARGIN-LEFT: 30px; BORDER-LEFT: 1px dotted; MARGIN-RIGHT: 30px; BORDER-BOTTOM: 1px dotted; FONT-FAMILY: monospace; BACKGROUND-COLOR: rgb(153,204,255)">
<p>CALL <em><<a href="http://www.preferisco.com/docwiki/pmwiki.php?n=EIP.CallProcedure#qualified-procedure-name">qualified-procedure-name</a>></em> ( [ <<a class="createlinktext" href="http://www.preferisco.com/docwiki/pmwiki.php/EIP/Expressions?action=edit">value-expression</a>> {, <<a class="createlinktext" href="http://www.preferisco.com/docwiki/pmwiki.php/EIP/Expressions?action=edit">value-expression</a>>} ] ) </p>
<p class="vspace"></p>
<p><qualified-procedure-name> ::= <a id="qualified_procedure_name" name="qualified_procedure_name"></a>[ <em>catalog-name</em>.[<em>schema-name</em>.[<em>procedure-name</em>]]] </p></div></div>
<div> </div>
<div>So BNF elements can be referenced, on the current or other pages, using normal wiki links. The syntax style just puts the whole thing into a box for emphasis, and sets to monotype.</div>
<div> </div>
<div>When I print this using PublishPDF and WikiPublisher, it looks pretty awful. The hyperlinks ("on page ??" and <1>) hide the names of the items being linked to, so are very confusing for the reader. </div>
<blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
<div><font size="3"><font size="3">
<p align="left"><font face="Times New Roman">CALL </font></p></font></font><i><font size="3"><font size="3"><font face="Times New Roman"><</font></font></font></i><font face="Times New Roman"><font size="3"><font size="3">qualified-procedure-name </font></font><i><font size="3"><font size="3">on page ??> </font></font></i></font><font size="3"><font size="3"><font face="Times New Roman">( [ <1> {, <1>} ] )</font>
<p><font face="Times New Roman"><qualified-procedure-name> ::= [ </font></p></font></font><i><font size="3"><font size="3"><font face="Times New Roman">catalog-name</font></font></font></i><font face="Times New Roman"><font size="3"><font size="3">.[</font></font><i><font size="3"><font size="3">schema-name</font></font></i></font><font face="Times New Roman"><font size="3"><font size="3">.[</font></font><i><font size="3"><font size="3">procedurename</font></font></i></font><font size="3"><font size="3"><font face="Times New Roman">]]]</font></font></font></div>
</blockquote>
<div>So I would like to be able to choose, when printing, to process wiki links differently within these syntax sections - in fact to throw away the links and just keep the text - when I am publishing to PDF (most PDF users will print it as hard copy - so who needs links). How should I go about this? Obviously I need to make modified versions of the various links markup - but how do I get them to operate only within my syntax section (and how best to mark out this section)? </div>
<div> </div>
<div>Of course I can put in conditional markup and do the right thing - but that means maintaining the syntax twice, which is not a great idea especially as there's a lot of it done already. (it's a large portion of the SQL:2003 standard...)</div>
<div> </div>
<div>All suggestions gratefully received</div>
<div> </div>
<div>Regards</div>
<div> </div>
<div>Nigel Thomas</div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>