This code only works in IE6, why is it? And how can I show my XML html (without CSS)?
& lt; Head & gt; & Lt; Meta http-equiv = "content-type" content = "text / html; charset = UTF-8" /> & Lt; Title & gt; Untitled document & lt; / Title & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Xml id = "xmlcatalog" src = "catalog.xml" & gt; & Lt; / XML & gt; & Lt; Table datasrc = "#xmlcatalog" width = "100%" & gt; & Lt; Thead & gt; & Lt; Th & gt; Image & lt; / Th & gt; & Lt; Th & gt; Date & lt; / Th & gt; & Lt; Th & gt; Time & lt; / Th & gt; & Lt; Th & gt; Title & lt; / Th & gt; & Lt; Th & gt; Author & lt; / Th & gt; & Lt; Th & gt; Style & lt; / Th & gt; & Lt; / Thead & gt; & Lt; Tr align = "left" & gt; & Lt; Td> & Lt; Span datafld = "image" & gt; & Lt; / Span & gt; & Lt; / Td> & Lt; Td> & Lt; Span datafld = "date" & gt; & Lt; / Span & gt; & Lt; / Td> & Lt; Td> & Lt; Span datafld = "time" & gt; & Lt; / Span & gt; & Lt; / Td> & Lt; Td> & Lt; Span datafld = "title" & gt; & Lt; / Span & gt; & Lt; / Td> & Lt; Td> & Lt; Span datafld = "author" & gt; & Lt; / Span & gt; & Lt; / Td> & Lt; Td> & Lt; Span datafld = "genre" & gt; & Lt; / Span & gt; & Lt; / Td> & Lt; / TR & gt; & Lt; / Table & gt; & Lt; / Body & gt; & Lt; / Html & gt;
XML
& lt ;? Xml Version = "1.0" encoding = "Window-1251"? & Gt; & Lt; List & gt; & Lt; Spectacle & gt; & Lt; Image & gt; Lir.gif & lt; / Image & gt; & Lt; Date & gt; 16.09.10 & lt; / Date & gt; & Lt; Time & gt; 19: 00 & lt; / Time & gt; & Lt; Title & gt; King Lear & lt; / Title & gt; & Lt; Author & gt; William Shakespeare / Author & gt; & Lt; Style & gt; Tragedy & lt; / Genre & gt; & Lt; / Tommasia & gt; & Lt; / List & gt;
* Update: * The solution is also present using XSLT
This code only works in IE6, why is it?
Because this is a non-standard proprietary code.
And how can I display in my XML HTML (without CSS)?
Use the programming language to convert the data into HTML and insert it into the document. If you want the best compatibility and search engine friendliness, then what should the server side do?
Comments
Post a Comment