<div>Greetings everyone, and here is my first question.</div>
<div>&nbsp;</div>
<div>I have a wiki in which I am showing a large number of BNF syntax diagrams. That works&nbsp;fine, with markup looking like this:</div>
<div>&nbsp;</div>
<div><font face="courier new,monospace">&gt;&gt;syntax&lt;&lt;</font></div>
<div><font face="courier new,monospace">(:linebreaks:) 
<div>CALL &#39;&#39;&lt;[[qualified-procedure-name-&gt;#qualified-procedure-name]]&gt;&#39;&#39; ( [ &lt;[[value-expression-&gt;Expressions#value-expression]]&gt; {, &lt;[[value-expression-&gt;Expressions#value-expression]]&gt;} ] )</div>
</font></div>
<div><font face="courier new,monospace"></font>&nbsp;</div>
<div><font face="courier new,monospace">&lt;qualified-procedure-name&gt; ::=&nbsp; [[#qualified_procedure_name]] [ &#39;&#39;catalog-name&#39;&#39;.[&#39;&#39;schema-name&#39;&#39;.[&#39;&#39;procedure-name&#39;&#39;[=]]]=] 
<div>(:nolinebreaks:)</div>
<div>&gt;&gt;&lt;&lt;</div></font></div>
<div>&nbsp;</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>&lt;<a href="http://www.preferisco.com/docwiki/pmwiki.php?n=EIP.CallProcedure#qualified-procedure-name">qualified-procedure-name</a>&gt;</em> ( [ &lt;<a class="createlinktext" href="http://www.preferisco.com/docwiki/pmwiki.php/EIP/Expressions?action=edit">value-expression</a>&gt; {, &lt;<a class="createlinktext" href="http://www.preferisco.com/docwiki/pmwiki.php/EIP/Expressions?action=edit">value-expression</a>&gt;} ] ) </p>

<p class="vspace"></p>
<p>&lt;qualified-procedure-name&gt; ::= <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>&nbsp;</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>&nbsp;</div>
<div>When I print this using PublishPDF and WikiPublisher, it looks pretty awful. The hyperlinks (&quot;on page ??&quot; and &lt;1&gt;) 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">&lt;</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 ??&gt; </font></font></i></font><font size="3"><font size="3"><font face="Times New Roman">( [ &lt;1&gt; {, &lt;1&gt;} ] )</font>
<p><font face="Times New Roman">&lt;qualified-procedure-name&gt; ::= [ </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>&nbsp;</div>
<div>Of course I can put in conditional&nbsp;markup and do the right thing - but that means maintaining the syntax twice, which&nbsp;is&nbsp;not a great idea&nbsp;especially as there&#39;s a lot of it&nbsp;done already. (it&#39;s a large portion of the SQL:2003 standard...)</div>

<div>&nbsp;</div>
<div>All suggestions gratefully received</div>
<div>&nbsp;</div>
<div>Regards</div>
<div>&nbsp;</div>
<div>Nigel Thomas</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>