Issue 20585 - </li> does not appear after <li>
Summary: </li> does not appear after <li>
Status: CLOSED NOT_AN_OOO_ISSUE
Alias: None
Product: xml
Classification: Code
Component: code (show other issues)
Version: OOo 1.1
Hardware: PC Windows 2000
: P3 Trivial (vote)
Target Milestone: ---
Assignee: jogi
QA Contact: issues@xml
URL:
Keywords:
: 20592 (view as issue list)
Depends on:
Blocks:
 
Reported: 2003-10-02 04:22 UTC by Unknown
Modified: 2003-10-06 09:01 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
A XHTML file. It has been directly exported from OOo 1.1.0 <li> & </li> tags are okay. (1.42 KB, text/plain)
2003-10-02 06:55 UTC, jogi
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Unknown 2003-10-02 04:22:19 UTC
I love the postprocessing of the html during save sine it cleans the $*&%^ 
microsoft garbage out. However I seem not to be able to save in xhtml format!

That means that <br/> gets converted to <BR> (which is not sooo bad), but 
<li>xxx</li> becomes <LI>xxxx.

I have some code post-processing the html using a sax parser which does not 
like what's going on.

How can I turn xhtml on?
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> is removed 
from the source on save.




<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
...
<UL TYPE=DISC>
	<LI><P STYLE="margin-bottom: 0cm"><B>Databases</B> 
	</P>
	<UL TYPE=CIRCLE>
		<LI><P STYLE="margin-bottom: 0cm">Design 
		</P>
		<LI><P STYLE="margin-bottom: 0cm">Performance optimization 
		</P>
		<UL TYPE=SQUARE>
			<LI><P STYLE="margin-bottom: 0cm">through modification 
of design </P>
			<LI><P>Optimization of Access algorithm at the SQL 
level including database procedures, triggers </P>
		</UL>
	</UL>
</UL>
Comment 1 jogi 2003-10-02 06:53:35 UTC
How to get XHTML in OOo 1.1.0
-----------------------------
In the setup you have to select (that's different from older OOo
versions!) explicit under 'optional components' the section 'XSLT
sample filters' otherwise you won't have the filters installed. You
can do that after your installation with %OOo_path%\program\setup.exe
-> and then 'modify'. THEY AREN'T FINAL JUST SAMPLES!

Your bug: It is allowed in HTML (e.g. v3.2)  to save <li> without
closing </li>-tag - I was also wondering :-) 
In the XHTML-filter everything works fine (see attached "bugdoc").
Comment 2 jogi 2003-10-02 06:55:07 UTC
Created attachment 9903 [details]
A XHTML file. It has been directly exported from OOo 1.1.0 <li> & </li> tags are okay.
Comment 3 jogi 2003-10-02 06:56:14 UTC
I will close that issue because it does not happen in XHTML, only in
HTML and there it is allowed.
Comment 4 jogi 2003-10-02 08:34:03 UTC
*** Issue 20592 has been marked as a duplicate of this issue. ***
Comment 5 Unknown 2003-10-02 10:29:18 UTC
I logged in.
I just type a full page of text when I reopened I was told to log in 
and all text was gone. I will at 4:30 go to bed and provide more info 
later.
Comment 6 jogi 2003-10-02 14:21:55 UTC
See
http://www.w3.org/TR/1998/REC-html40-19980424/struct/lists.html#h-10.2
that in HTML (_NOT_ XHTML!) it is okay to leave the <li> open. You
haven't exported XHTML! See my description!
Comment 7 jogi 2003-10-02 14:24:14 UTC
closing.
Comment 8 Unknown 2003-10-03 00:57:24 UTC
I don't know whether this is my ignorance of OO or it is an error. 
If it is a user issue I would ask for a howto or more user oriented 
docs. What I found did not help a lot (Be your own judge and check 
the help).

I had installed the complete OO package (including the filters).

I use exclusively xhtml, since it is more consistent and one can use 
any of the mature soap or sax parsers for postprocessing.

What I did:

I opened [tools][xml filter settings];
chose [XHTML File] which made most sense of those three options.
Clicked [Save as package] and named it xhtml.jar. (original was 
main_html.xsl)
Clicked [open package] and received the message:
'the xml filter 'xhtml file' has been installed successfully.'

I edited in an external editor an .html file according to your 
example and replaced my former header:
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 
Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-
transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>coxnet</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-
1" />
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

with the lines you had in your example:
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<?xml version="1.0" encoding="UTF-8"?>
<html 
xmlns:urlencoder="http://www.jclark.com/xt/java/java.net.URLEncoder" 
xmlns:system="http://www.jclark.com/xt/java/java.lang.System" 
xmlns:xt="http://www.jclark.com/xt" 
xmlns:help="http://openoffice.org/2000/help" 
xmlns:config="http://openoffice.org/2001/config" 
xmlns:meta="http://openoffice.org/2000/meta" 
xmlns:dc="http://purl.org/dc/elements/1.1/" 
xmlns:script="http://openoffice.org/2000/script" 
xmlns:form="http://openoffice.org/2000/form" 
xmlns:math="http://www.w3.org/1998/Math/MathML" 
xmlns:dr3d="http://openoffice.org/2000/dr3d" 
xmlns:chart="http://openoffice.org/2000/chart" 
xmlns:svg="http://www.w3.org/2000/svg" 
xmlns:number="http://openoffice.org/2000/datastyle" 
xmlns:xlink="http://www.w3.org/1999/xlink" 
xmlns:fo="http://www.w3.org/1999/XSL/Format" 
xmlns:draw="http://openoffice.org/2000/drawing" 
xmlns:table="http://openoffice.org/2000/table" 
xmlns:text="http://openoffice.org/2000/text" 
xmlns:style="http://openoffice.org/2000/style" 
xmlns:office="http://openoffice.org/2000/office">
<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-
1252">
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

I saved the file and loaded it into OO.
My observation: The .html file was considered text/plain by the 
editor, not as html data.

I tried to export the file now using the filter:
[file][export]marked set filetype automatically and saved as xxxx

It did not export but I received a popup:
Openoffoce 1.1.0
Error saving the document 4test.html
General Error
General input/output error

It tried to export to the original file 4test.html instead of 
xxxx.html or xxxx.xhtml found that the file was locked (by itself) 
and chickened out.

The file I used is relatively simple from my website. You can 
download it from <http://www.itcons.us/mainsite/pages/expertise.html>

What am I doing wrong? or more importantly: How do I do it right?
Why do I have to save and open the package? (Everytime I start up?)
Why isn't xhtml the default instead of plain html since opera, NS and 
IE all (and that's only the browsers I got my hands on) present it 
correctly.

I believe that others might have similar problems coming from the M$ 
environment. It might be totally obvious for seasoned OO users bt not 
for the rest of the world who got finally tired enough of MS's games 
to look into alternatives but still have an MSOffice history.


Comment 9 jogi 2003-10-05 16:15:29 UTC
- It is completely another issue that you have submitted! 
- You CAN NOT LOAD THEM AT ALL! XHTML is only an EXPORT filter!
- OOo is only able to load HTML 3.2 + some specials (M$ IE and
Netscape specials). 
But, sorry for my strict procedure, the bug you have submitted is
INVALID because XHTML is saving the <li> tag correctly.
You can not exchange only a <HEAD> in a HTML file to get a XHTML file.
It has nothing to do with M$ interoperability. You just tried
something which can not work.
Comment 10 jogi 2003-10-06 08:50:52 UTC
Reporter and I resolved the understanding problem offline (eMail) and
I agree that it may be is confusing to have a source editor in
Writer/WEB but it can not used for XHTML - only for HTML. I will add
this issue for further discussion in User Experience team.
Comment 11 Unknown 2003-10-06 09:01:04 UTC
Agreed!

gs