logo       

Re: [xmlc] <br clear="none"></br>: msg#00006

java.enhydra.xmlc

Subject: Re: [xmlc] <br clear="none"></br>


On Apr 16, 2007, at 6:21 PM, Jacob Kjome wrote:
I don't have time to check ATM, because I'm at work.

It's a shame that you selfless OSS heroes have to have day jobs too.

However, can you look at
the DTD? Does it have default values defined for these attributes? If so, the
parser is probably filling those in automagically.

I don't speak DTD very fluently, but the relevant lines of xhtml.jar/ org/enhydra/xml/xhtml/dtd/w3/1.1/xhtml11-flat.dtd seem to be:

---
<!-- br: forced line break ............................. -->

<!ENTITY % br.element "INCLUDE" >
<![%br.element;[

<!ENTITY % br.content "EMPTY" >
<!ENTITY % br.qname "br" >
<!ELEMENT %br.qname; %br.content; >

<!-- end of br.element -->]]>

<!ENTITY % br.attlist "INCLUDE" >
<![%br.attlist;[
<!ATTLIST %br.qname;
%Core.attrib;
>
<!-- end of br.attlist -->]]>
---

Sure looks like there isn't anything about a "clear" attribute there. Perhaps I'm looking in the wrong place?

Not sure what could be done
about that other than changing the DTD (which is feasible, since XMLC contains
its own local copies of the DTD, but care would need to be taken for any change
to a published DTD)

The "clear" attribute is deprecated in the HTML4 spec. It wasn't deprecated in HTML3.2.

or having the user delete the attribute (which would be
annoying, I admit).

Indeed.

As far as outputing <br ...></br> instead of <br .../>, that's probably
something I can control in the serializer code. I'll try to look into it
tonight. There's no reason it should be output with the former format as BR's
content model is empty, at least as far as I am aware.

The XHTML spec says, "Use the minimized tag syntax for empty elements, e.g. <br />, as the alternative syntax <br></br> allowed by XML gives uncertain results in many existing user agents."

Oooh! I just found this:
---
<!ATTLIST %br.qname;
clear ( left | all | right | none ) 'none'
>
---
on this page: http://www.w3.org/TR/xhtml-modularization/ dtd_module_defs.html

I'm not familiar enough with XML and DTDs to know if the XHTML Modularization 1.1 DTD applies to XMLC and this particular problem.

Did my research help at all? I can't say that it cleared things up any for me. :-(

Thanks for your promptness,
Erik




--
You receive this message as a subscriber of the xmlc@xxxxxxxxxxxxx mailing list.
To unsubscribe: mailto:xmlc-unsubscribe@xxxxxxxxxxxxx
For general help: mailto:sympa@xxxxxxxxxxxxx?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise