Thanks for the quick response, but as far as I can see neither possibility you
suggest applies:
Schema:
<xsd:element name="types" type="complex-types"/>
<xsd:complexType name="complex-types">
<xsd:sequence>
<xsd:element name="complex-type" minOccurs="0"
maxOccurs="unbounded" type="complex-type"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="complex-type">
<xsd:sequence>
<xsd:element name="name" type="xsd:string"/>
<xsd:element name="description" type="xsd:string"/>
<xsd:element name="field" minOccurs="0" maxOccurs="unbounded"
type="field"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="field">
<xsd:sequence>
<xsd:element name="name" type="xsd:string"/>
<xsd:element name="description" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
XXE:
<xxe:detect>
<xxe:rootElementLocalName>types</xxe:rootElementLocalName>
</xxe:detect>
<xxe:schema>
<xxe:location>http://www.markit.com/mdp/mio/descriptions/entity
descriptionschema.xsd</xxe:location>
</xxe:schema>
<xxe:css name="Style sheet" location="descriptionschema.css" />
<xxe:template name="Template" location="descriptionschema_template.xml" />
<xxe:spellCheckOptions skippedElements="mio_e:name " />
-----Original Message-----
From: Hussein Shafie [mailto:[email protected]]
Sent: Friday, September 23, 2011 2:50 PM
To: Agnes Clarke
Cc: '[email protected]'
Subject: Re: [XXE] Line breaks appearing in XML Mind
On 09/23/2011 02:38 PM, Agnes Clarke wrote:
> I have a simple document format that allows text within a <description>
> element. When I close and reopen the document the text is disrupted by
> the line breaks in the XML - I would expect from prior use of XML Mind
> that the white space should be collapsed to a single space.
>
> Here is my CSS, which does not contain anything unusual:
>
> types, complex-type, field, name, description {
>
> display: block;
>
> padding-bottom: 6px;
>
> }
>
> /*indentation*/
>
> field {
>
> margin-left: 5em;
>
> }
>
> /*titles*/
>
> name {
>
> font-size: 120%;
>
> font-weight: bold;
>
> }
>
> /*Prefix texts*/
>
> field name:before {
>
> content: xpath("../../*[local-name(.) = 'name']") ".";
>
> font-weight: bold;
>
> }
>
This is not related to your CSS, which is fine.
My guess is that your schema specifies that, by default, the
<description> element has xml:space="preserve"[*] or, may be, one of it
ancestor elements has by default xml:space="preserve".
Please take a look at the Attributes tool or press Shift-F1 (Help|Show
Content Model) to check this.
---
[*] Another less common possibility would be declaring the <description>
element in the preserveSpace configuration element. See
http://www.xmlmind.com/xmleditor/_distrib/doc/configure/preserveSpace.html
This e-mail, including accompanying communications and attachments, is strictly
confidential and only for the intended recipient. Any retention, use or
disclosure not expressly authorised by Markit is prohibited. This email is
subject to all waivers and other terms at the following link:
http://www.markit.com/en/about/legal/email-disclaimer.page
Please visit http://www.markit.com/en/about/contact/contact-us.page? for
contact information on our offices worldwide.
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support