logo       

Re: [xmlc] xhtml <link /> and xmlc: msg#00002

java.enhydra.xmlc

Subject: Re: [xmlc] xhtml <link /> and xmlc


Hi Franck,

I take it you are using XMLC-2.2.14? What does you XMLC metadata look like? See one of the Barracuda contrib projects for examples. Here's what Diez' project uses, for reference...

-dom xhtml
-for-deferred-parsing
-generate both
-html:encoding iso-8859-1

If you happen to not be using the XHTML DOM, but the HTML DOM with the JTidy parser, the empty tags with a closing slash confuse JTidy and the HTML Formatter will get just as confused.

Also, how are you outputting the document? Here's how you need to do it in Barracuda and be XHTML compatible (assuming you've got the above correct)...

OutputOptions oo = DefaultDOMWriter.getDefaultOutputOptions(theDocument);
oo.setOmitXMLHeader(true);
oo.setEnableXHTMLCompatibility(true);
oo.setUseAposEntity(false);
DOMWriter writer = DefaultDOMWriter(oo);
....
....
....


Jake

At 08:44 AM 4/7/2007, you wrote:
>Hi,
>
>I had really strange results in Barracuda with a template model on a new
>document, and after simplifying the doc, I think I encounter what seems
>like a bug in xmlc.
>
>If I put a tag like this :
>
><link href="css/mystyle.css" rel="stylesheet" type="text/css" />
>
>in my xhtml document, the head get around the body :) Well, more
>precislely, when rendering (in Barracuda) I get something like :
>
><HTML xmlns="http://www.w3.org/1999/xhtml";>
><head>
><link href="css/mystyle.css" rel="stylesheet" type="text/css">
><body>
><p>my page</p>
></body>
></head>
></html>
>
>This result make BTemplate quite confused, especially when it encounter
>another self closing element, like a <img />.
>
>If I put :
>
><link href="css/mystyle.css" rel="stylesheet" type="text/css"></link>
>
>or even (but here my doc is not well formed)
>
><link href="css/mystyle.css" rel="stylesheet" type="text/css">
>
>things work...
>
>Or is there something special to do for xmlc to work with xhtml
>documents ?
>
>Franck
>
>
>
>
>
>--
>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



--
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