The quoting in LZX is surely tricky, because it has to let users pass Javascript expressions through the XML syntax.
If you think of compiling LZX programs as being in two phases, it can help make it easier to think about. The first phase is to run through an XML parser, and thus regular XML quoting rules apply. You can think of a second phase which is to emit Javascript code that can be further processed by a platform-dependent interpreter or compiler. Most of the problems people see involve passing stuff through the XML parser. The <![CDATA[ ]]> construct is often used in handlers and methods, but you still have to use the more confusing XML quoting when you are using javascript expressions inside of attribtue values.... On Fri, Aug 14, 2009 at 3:20 PM, Torsten Curdt <[email protected]> wrote: > Guess I should have tried that before posting :-/ > A little surprising but that does indeed work. > > Thanks, Henry > > On Fri, Aug 14, 2009 at 22:14, Henry Minsky<[email protected]> > wrote: > > Have you tried the XML quoting for 'quote' ? > > > > @id="something" > > > > > > > > On Fri, Aug 14, 2009 at 2:01 PM, Torsten Curdt <[email protected]> wrote: > >> > >> Using > >> > >> ... attribute="$path{'/some/path/@attr'}" > >> > >> works just fine. But how can one use this expression e.g.? > >> > >> ... attribute="$path{'/some/pa...@id='something']/@attr'}" > >> > >> Of course the above doesn't work. Can I quote the single quotes somehow? > >> > >> cheers > >> -- > >> Torsten > > > > > > > > -- > > Henry Minsky > > Software Architect > > [email protected] > > > > > > > -- Henry Minsky Software Architect [email protected]
