<div class="gmail_quote">El 18 de enero de 2011 09:36, Shaun McCance <span dir="ltr"><<a href="mailto:shaunm@gnome.org">shaunm@gnome.org</a>></span> escribió:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Tue, 2011-01-18 at 09:18 -0500, Luis Felipe López Acevedo wrote:<br>
> Hi,<br>
><br>
> I have to pass my documents to other people that is not supposed to<br>
> edit the mallard documents but for whom comments are relevant. Is<br>
> there any option in Yelp to see them? We are using Yelp 2.30.0.<br>
<br>
</div>I'm afraid there's no easy way to do it in Yelp 2. With Yelp 3<br>
(still in development), you can pass the --editor-mode option.<br>
<br>
The stylesheet features are there in Yelp 2; there's just no<br>
easy way to enable them. If you don't mind mucking about with<br>
installed files, you can turn on editor mode for all Mallard<br>
documents. Open the file /usr/share/yelp/xslt/mal2html.xsl in<br>
a text editor as root or with sudo. Find the part near the top<br>
with the <xsl:param> elements and add this:<br>
<br>
<xsl:param name="mal2html.editor_mode" select="true()"/><br>
<br>
Save. Restart Yelp.<br>
<br>
Alternatively, you can make each comment always visible by<br>
adding the following processing instruction as the first<br>
child of each comment:<br>
<br>
<?mal2html.show_comment?><br>
<br>
(This is not a documented feature. It's basically there so<br>
that I can make the example comments on <a href="http://projectmallard.org" target="_blank">projectmallard.org</a><br>
always visible. But it's not likely to go away.)<br>
<br>
I realize both approaches are a pain. With the first, you have<br>
to make other people edit files they probably shouldn't. With<br>
the second, you have to write a bunch of PIs and make sure to<br>
remove them before shipping a final version. But there's not<br>
much I can do about Yelp 2.30's shortcomings now.<br>
<br></blockquote><div><br></div></div>The second approach will do.<br><br>Thank you very much,<br clear="all"><br>-- <br>Luis Felipe López Acevedo<br><a href="http://introsmedia.wordpress.com/" target="_blank">IntrosMedia</a><br>
<br>