Well, they aren't. But the wiki is. ;)

-----Original Message-----
From: Hussein Shafie [mailto:[email protected]] 
Sent: Thursday, April 22, 2010 11:18 AM
To: Tyrin Avery
Cc: [email protected]
Subject: Re: [XXE] xrefs with newlines break links

Tyrin Avery wrote:
> 
> I am using XMLMind with the dita2wiki toolkit to generate content for a
> wiki from dita files.
> 
> Unfortunately, XMLMind allows newline characters in xref elements.
> 
> For example
> 
> <xref
> 
> href="../myfolder/myfile.dita">
> 
>  
> 
> These newline characters cause the xrefs to be created on multiple
> lines, ie.
> 
>  
> 
> [Custom
> 
> Objects | custom objects]
> 
>  
> 
> This breaks the reference and the wiki can't interpret it.
> 
> I don't know why this happens, but the dita2wiki help forum suggested
> for a similar problem that it was an issue with the editing tool and
> that the solution was to have a tool with a prettify option.  

XML processors such as dita2wiki are not supposed to be that sensitive
to whitespace found in XML files.



> 
> Is it possible for XMLMind to not allow newlines inside links? 

XMLmind XML Editor does not really *allow* newlines inside links. I
mean, you cannot type a newline character in an xref element.

However, by default, XMLmind XML Editor creates *indented* XML files and
in order to indent XML, it may have to break a link into several lines.



> Or have a prettify option for the code?

Yes. Please use "Options|Preferences", "Save" section and specify:

Indentation: 0
Max. line length: 10000000

(Yes, 10 millions)

More info.:
http://www.xmlmind.com/xmleditor/_distrib/doc/help/com.xmlmind.guiutil.PreferencesEditorDialog.html#saveOptions





This e-mail message and all attachments transmitted with it may contain 
privileged and/or confidential information intended solely for the use of the 
addressee(s). If the reader of this message is not the intended recipient, you 
are hereby notified that any reading, dissemination, distribution, copying, 
forwarding or other use of this message or its attachments is strictly 
prohibited. If you have received this message in error, please notify the 
sender immediately and delete this message, all attachments and all copies and 
backups thereof.

 
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to