Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2010-07-29 13:00:32

Hastings
Xinha Community Member
Registered: 2010-07-29
Posts: 10

XMLNS tag

Hi,

Adding to my previous thread, how can I automatically generate an xmlns tag in the XHTML output such as : xmlns="http://www.w3.org/1999/xhtml"? I notice documents without this tag are marked as invalid XHTML docs.

Offline

#2 2010-07-29 19:35:18

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: XMLNS tag

As for the previous, do it outside Xinha.  Xinha is for HTML (tag soup), it will probably be well-formed XML but not likely to be valid XHTML at all.


James Sleeman

Offline

#3 2010-07-30 07:31:30

Hastings
Xinha Community Member
Registered: 2010-07-29
Posts: 10

Re: XMLNS tag

Hmm...that's slight contradictory with whats written on the GetHtml plugin page sad

GetHtml is a replacement for the getHTML() function in htmlarea.js. It offers several improvements over the original, including:

    * Produces valid XHTML code
    * Formats code in HTML view in indented, readable format.
    * Much faster than HTMLArea.getHTML()
    * Eliminates many hacks to accomodate browser quirks
    * Returns correct code for Flash objects and scripts
    * Preserves formatting inside script and pre tags

Offline

#4 2010-07-31 06:12:03

billsutton
New member
From: Adaminaby, NSW, Australia
Registered: 2006-07-23
Posts: 4
Website

Re: XMLNS tag

xinha does produce valid xhtml content code. I'm using xinha to update webpage content, then I take this and wrap it in xml with other info like menus, title, keywords, etc and then use xslt to transform it into a webpage. If nasties like unfiltered pasting from a microsoft document are avoided, it works well.

Bill

Offline

Board footer

Powered by FluxBB