Oops, I meant to reply to all, not just Shaun:<br><br><br>Hey Shaun,<br><br><div class="im">On Fri, Jun 10, 2011 at 11:15 AM, Shaun McCance <span dir="ltr"><<a href="mailto:shaunm@gnome.org" target="_blank">shaunm@gnome.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br>
<br>
I'm toying around with an extension to do expanders for blocks<br>
and sections. </blockquote></div><div><br>Ok - I think I remember talking about this. It would allow the user to expand or hide sections of the documentation, right?<br> </div><div class="im"><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
You can make formal blocks and sections collapsible,<br>
but you can also just have a stand-alone expander, like so:<br>
<br>
<ui:expander expanded="no"><br>
<title>The title is always shown</title><br>
<p>But this is only shown when expanded</p><br>
</ui:expander><br>
<br>
The problem is that the fallback behavior for tools that don't<br>
support the extension is a bit weird. It will treat the content<br>
as normal block content, which is right, but it will encounter<br>
that extra title element, which isn't generally valid as block<br>
content.<br></blockquote></div><div><br>Understood.<br> </div><div class="im"><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
<br>
So I'm thinking of adding a generic div element. It would have<br>
an optional leading title, so could be used as a no-semantics<br>
way to do a formal block or a floating title.You could also<br></blockquote><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
use it without a title for grouping. That's potentially useful<br>
for stuff like conditional processing.<br></blockquote></div><div><br>I'm
a bit confused here. Could you provide some examples for the,
"no-semantics way . . . " and using it without a title for grouping?<br> </div><div class="im">
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
<br>
Then the fallback behavior for unknown block content could be<br>
changed to something like "if the unknown block element has a<br>
leading title element, treat it as if the containing element<br>
were a div".<br></blockquote></div><br>This sounds fine.<br><br>This
may have been something that you and Phil were talking about. How would
having the option of including an expander help docs, though? As a
moderately technical user of Mallard, I think this could be clarified a
bit more.<br>
<br>Jim<br><br>if you're using gmail, you may need to un-hide some of the text above to see what I've written.<br>