[Laszlo-user] More on namespaces and XML schema...

Fennell, Philip philip.fennell at hp.com
Fri Apr 13 08:47:20 PDT 2007


Thanks for the link.

I've had a quick look at the examples of XPath expressions in section 3.1 and was rather surprised to see the following:

myData:/myXML[1]/person[2-3]
myData:/myXML[1]/person[2-]
myData:/myXML[1]/person[-2]

Since when has there been position predicates in XPath that support ranges?

I'm more that slightly aquainted with the XPath 1 spec and have been using XPath 2 for a couple of years now and have never seen this before.


Regards

Philip Fennell

 
 

________________________________

From: Francisco Jose Peredo [mailto:fperedo at sefintab.gob.mx] 
Sent: 12 April 2007 16:06
To: Fennell, Philip
Cc: laszlo-user at openlaszlo.org
Subject: Re: [Laszlo-user] More on namespaces and XML schema...


Hi!
Laszlo has "limited support for namespaces" (basically it ignores them): 
Chapter 36. Data, XML, and XPath
http://labs.openlaszlo.org/legals-nightly/docs/guide/data-structures.html
(that is from OL 4.0, so I guess none of the previous versions have more than "limited" support.

Fennell, Philip escribió: 

	Hello again,
	
	Seeing as the link in the documentation (running under tomcat) for
	lzx.dtd returns a 404 error I had to do a bit of searching around on the
	net. There's a link on the wiki, under 'Editing LZX' that is also broken
	too.
	
	So initialy I tried using the XML Schema (lzx.xsd) and noticed
	immediately:
	
	1) That the form and window elements are not defined in the schema.
	
	
	2) There are errors in the schema too:
	
	In the definition of the element 'preloadresource' the name and resource
	attributes are also declared elsewhere in attributeGroup declarations
	referenced directly and indirectly by this element declaration.
	
	
	3) If you put the appropriate markup, in the root of you canvas
	document, to identify the schema:
	
	<canvas xmlns="http://www.laszlosystems.com/2003/05/lzx" <http://www.laszlosystems.com/2003/05/lzx> 
	        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <http://www.w3.org/2001/XMLSchema-instance> 
	        xsi:schemaLocation="http://www.laszlosystems.com/2003/05/lzx
	../schema/lzx.xsd" <http://www.laszlosystems.com/2003/05/lzx../schema/lzx.xsd> 
	        width="1024"
	        height="768">
	   ...
	</canvas>
	
	You get the following error message form the compiler:
	
	
	The application could not be compiled due to the following errors:
	
	Compilation Errors
	form.lzx:10:22: Syntax error: the token ":" was not expected at this
	position.
	Compilation Warnings
	
	form.lzx:10:22: attribute "schemaLocation" from namespace
	"http://www.w3.org/2001/XMLSchema-instance" <http://www.w3.org/2001/XMLSchema-instance>  not allowed at this point;
	ignored
	form.lzx:10:22: found an unknown attribute named "schemaLocation" on
	element canvas, check the spelling of this attribute name
	
	
	This would suggest that not only is Open Laszlo not XML namespace aware
	(see previous e-mail) but neither is it XML Schema aware either.
	
	
	Its not that I'm being picky for picky's sake, I actually like what I've
	seen of Open Laszlo so far. Its just that things I'd want and expect to
	work don't.
	
	
	Regards
	
	Philip Fennell
	
	
	
	  





More information about the Laszlo-user mailing list