Hello Hussein

Thanks for your reply. I have attached the XML file and its XSL. Before
you spend too much time on it, I should say that I am no expert at XML
or XSL, so you may find all kinds of things done the wrong way. Also,
the XML was output from FrameMaker; the files are still in an
experimental stage (I am learning as I go), and neither the XSL nor the
output rules are yet complete, so there are elements such as <indexterm>
that are not yet handled correctly.

To answer the suggestions you made:

I don't have any xml:space attributes anywhere.
The stylesheet reference does specify "text/xsl".

Since posting my message I have upgraded to 2.4 but the problem
persists. I also tried deleting the two graphic elements in the first
paragraph, and that seemed to solve the problem, but I don't know why
(or indeed how to put them back without making it happen again).

So plese don't feel you have to spend a lot of time on this. I
appreciate your help. Have a good holiday!


Roger Shuttleworth



-----Original Message-----
From: Hussein Shafie [mailto:[email protected]] 
Sent: August 14, 2003 4:30 AM
To: Roger Shuttleworth
Cc: xmleditor-support at xmlmind.com
Subject: Re: [XXE] Word wrapping problem


Roger Shuttleworth wrote:
> Using v.2.3 Standard on Windows 2000. I opened an XML file that was
> exported from FrameMaker. The file is valid and well-formed, and is 
> linked to an XSL stylesheet. None of the paragraphs wrap. For example,

> my first paragraph extends in a single line from the left side, while 
> the second paragraph starts below the end of the right end of para 1
and 
> extends even further to the right. All the other paragraphs line up 
> under para 2 but still don't wrap.
> 
> I looked for a Word Wrap option but don't see any. Has anyone else had
> this problem? Anyone know of a solution?

By default, XXE wraps words for all paragraphs, unless:
* Element has attribute xml:space="preserve".
* You use a CSS style sheet specifying "white-space:pre;" or 
"white-space:nowrap;" for a rule matching the element.

First question: do you see a tree view or a styled view (something like 
a page displayed by a browser) when you open your document ?

If you see a tree view, what you describe could be caused by an 
xml:space="preserve" added to the root element.

If you see a styled view,
my second question is: does the <?xml-stylesheet?> PI which associates 
an XSL style sheet with your document specify type="text/xsl"?

If this is not the case, it could be mistaken for a CSS style sheet. Use

Options|Options, Open tab and check "Ignore <?xml-stylesheet?>" and
reopen your document to see if this improve things. (But in such case, 
you should have had lots of error messages.)

But all these are guesses, you'll need to send me your document if you 
want a really accurate diagnostic.

Please do so today because I'll be in vacations for the next 15 days and

nobody will answer questions sent to this mailing list for the next 15
days.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: roger.xsl
Type: application/octet-stream
Size: 5982 bytes
Desc: roger.xsl
Url : 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20030818/0fe63f1a/attachment.dll
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Security.xml
Type: text/xml
Size: 31853 bytes
Desc: Security.xml
Url : 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20030818/0fe63f1a/attachment.xml
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: roger.css
Type: text/css
Size: 4986 bytes
Desc: roger.css
Url : 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20030818/0fe63f1a/attachment.css
 

Reply via email to