Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » XSD documentation and formatting
XSD documentation and formatting [message #647449] Thu, 06 January 2011 13:14 Go to next message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
Registered: July 2009
Senior Member
Hi,

Is there a way to have the XSD editor (From WTP) not format Character
data inside the documentation tags?
(By default it would indent the text according to the XML editor
indenting rules for tags, which can be set in preferences, by defaults
TABs are inserted).

I have tried with CDATA, but this is then not stripped in the .ecore
conversion. Is there a trick for this?

Example:

<xs:documentation><![CDATA[
A type represening the basic imformation points of a real world Company.
Companies can be commercial vendors of equipment Telecommunication Service
Providers or other institutions i.e. industry cooperation bodies to promote
usage of standards.]]>
</xs:documentation>


thx, Christophe
Re: XSD documentation and formatting [message #647502 is a reply to message #647449] Thu, 06 January 2011 17:11 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Christophe,

Comments below.

Christophe Bouhier wrote:
> Hi,
>
> Is there a way to have the XSD editor (From WTP) not format Character
> data inside the documentation tags?
That's a WTP question.
> (By default it would indent the text according to the XML editor
> indenting rules for tags, which can be set in preferences, by defaults
> TABs are inserted).
>
> I have tried with CDATA, but this is then not stripped in the .ecore
> conversion. Is there a trick for this?
>
> Example:
>
> <xs:documentation><![CDATA[
> A type represening the basic imformation points of a real world Company.
> Companies can be commercial vendors of equipment Telecommunication
> Service
> Providers or other institutions i.e. industry cooperation bodies to
> promote
> usage of standards.]]>
> </xs:documentation>
>
>
> thx, Christophe


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Custom editing widgets for properties of model elements
Next Topic:headless generation of xml from a xsd
Goto Forum:
  


Current Time: Wed Apr 24 21:55:54 GMT 2024

Powered by FUDForum. Page generated in 0.04342 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top