Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: XML editing

From: Peter Flynn <peter.nosp@-.--------.-->
To: NULL
Date: 4/2/2006 1:13:00 PM

Anupam wrote:
> Hi,
>  I have defined the Schema for XML in which there a tag 

No. See http://xml.silmaril.ie/authors/makeup/

> (viz: <doc>) that 
> can contain any HTML tags. Is there an Editor (commercial or otherwise) that 
> would allow me to create the XML with WYSIWYG HTML editing for the contents 
> of that tag.

Hundreds of them, but mostly either for

a) HTML-only (web page editors) which won't work for you without
    additional software because you add <doc>...</doc> around the
    HTML; or

b) XML-only (XML editors) which will handle the doc root element,
    but only if you create your own "driver" DTD or Schema to embed
    HTML in it.

See http://xml.silmaril.ie/developers/software/#editors

> Example:
> <doc>
>   <b>This is bold</b>
>   <i>This is italic</i>
> </doc>
> <other_tags> ...
> 
> So <doc> can have any html tag, but I want an editor that allows me to write 
> just text e.g "This is bold" then select a button to make it bold, so that I 
> don't have to use the HTML tags.

Any programmable XML editor can do this, but you must write the code
to activate the button or menu or keystroke because it's an unusual
function and is not built into most of them.

But you must understand that adding <b>...</b> around text in XML does 
not make it bold. It just encloses the text in the b element. Don't
confuse browsers' default rendering of HTML with XML. XML has no styling
in itself: this is always applied in a stylesheet, so what you want is
a key or menu item or button to enclose the highlighted text in the b
element. You then also want a stylesheet that renders doc//b as bold.

///Peter
-- 
XML FAQ: http://xml.silmaril.ie/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent