W3C home > Mailing lists > Public > www-html@w3.org > April 2007

How to code separator in XHTML 2

From: Rob Simpson <Rob.Simpson@BlackBox.com>
Date: Fri, 27 Apr 2007 20:11:04 -0500
Message-ID: <C070BEDCDF191F42A7BB08BF8C7063170ED82C71@SATURN.corp.bbns.com>
To: "'www-html@w3.org'" <www-html@w3.org>

In some XHML web pages, rather than using <hr/>, I have been coding a
labeled "separator" , which in XHTML V1 is transformed so that it has only
top and bottom borders and therefore looks something like







except that it only takes one line to display it.


I would have currently coded that as 


            <separator title="Tool tip for section A">A</separator>


and the CSS stylesheet for the element includes:


            border-width: 2px 0px 1px 0px;


For XHTML-MP on handheld devices, that element is simply dropped by the XSL


            <xsl:template match="separator"/>


However, looking ahead at the working draft for XHTML 2, the content model
for <separator/> says that it is "EMPTY".

So, then, what would be the best way to code that kind of separator be coded
in XHTML 2?  Or is there a better element in XHTML 2 to use to indicate an
optional leading separator for a section?


Thanks in advance.

Robert Simpson


This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 

This email and any files transmitted with it are confidential and are intended for the sole use of the individual to whom they are addressed. Black Box Corporation reserves the right to scan all e-mail traffic for restricted content and to monitor all e-mail in general. If you are not the intended recipient or you have received this email in error, any use, dissemination or forwarding of this email is strictly prohibited. If you have received this email in error, please notify the sender by replying to this email.
Received on Saturday, 28 April 2007 01:11:19 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:15 UTC