-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
when i have two elements in ZUL like:
<n:span>A<n:span><n:span>B<n:span>
<n:span>A<n:span> <n:span>B<n:span>
Thanks
Is it a valid XML format?
Zul Editor requires a strict XML file for input, and there's no end tag for each of four <n:span> in your case.
@iantsai: Sorry, it was a mistake. There should be proper end tags in my example.
@henrichen: May ZK Studio change these rules? Maybe Ant pluging do it ...
Wow, I have found this in the spec http://www.w3.org/TR/2004/REC-xml-20040204/#sec-white-space and Eclipse (3.5, WTP) can handle it, so
<window xml:space="preserve"> <n:span>A</n:span><n:span>B</n:span> </window>
Always learning ...
BTW. Generally, it should be possible to switch on/off in the XSD, see http://www.w3.org/TR/xmlschema-1/#cAttributeUse but I do not know how Eclipse handle it. I have tried to edit zul.xsd in the org.zkoss.eclipse.editor_0.9.6.v200912041237.jar, but the formatting was still generating new lines.
When I use
<div xml:space="preserve">asdfasf</div>
I get this exception:
org.zkoss.zk.ui.metainfo.PropertyNotFoundException: Method setSpace not found for class org.zkoss.zul.Div
Did you ever solve this problem?
Asked: 2010-04-28 10:40:58 +0800
Seen: 1,091 times
Last updated: May 27 '16
ZK studio and eclipse outline problem
ZK Package configuration problem
Eclipse Autocomplete not working in ZUL files...
Syntax Error mark ... help me!
Manual Installation of ZK Studio
Can't see button text whilst running simple demo
Adding Vbox to Center layout in Java