Menu

OpenLaszlo DTD

Help
Peter
2007-01-19
2012-12-07
  • Peter

    Peter - 2007-01-19

    To whoever wrote XML Copy Editor, congratulations, you have done a brilliant job. This is a classy, professional tool that outstrips Stylus Studio by miles.

    I have a question about DTD. I read a couple of the other posts and tried to figure it out myself, but I'm stumped. I'm a little new at all this stuff.

    I'm developing with OpenLaszlo, which is brilliant to work with. It comes with lzx.DTD. I've added this file to the folder C:\Program Files\XML Copy Editor\dtd\lxz.dtd and added the following line to the catalog.

      <public publicId="-//OpenLaszlo//DTD Main Document Type//EN" uri="file:///C:/Program%20Files/XML%20Copy%20Editor/dtd/lzx.dtd"/>

    But I can't seem to see the definitions in the insert elements box or anywhere. Have I missed something? Should I be seeing all the elements and attributes for OpenLaszlo?

    Thanks for your help. If I get this working I'll be posting on the OpenLaszlo site and telling them to forget Eclipse, use XML Copy Editor.

    Cheers,
    Peter

    PS. Some of the other posts were a little hostile when they ran into problems. I can't believe that. You're providing a fantastic service.

     
    • gnschmidt

      gnschmidt - 2007-01-19

      Thank you very much Peter! OpenLaszlo looks fascinating (I hadn't come across it before). I will add the DTD and catalog entry to the standard download for version 1.0.8.9, which is due out next week.

      In the meantime, I will investigate this and get back to you asap.

      Regards,
      Gerald

       
    • gnschmidt

      gnschmidt - 2007-01-19

      Peter, I've fixed this in the source. Am I right in thinking that *.lzx files always take this DTD? If so, I could associate the DTD with the extension, so input helpers will always work. I could also add lzx to the optional file associations that can be set at installation time.

      Version 1.0.8.9 will have built-in support for lzx files, the lzx DTD and a basic template.

      In the meantime -

      If lzx.dtd is saved in the folder dtd below the application folder, the following should work:

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE canvas PUBLIC "-//OpenLaszlo//DTD Main Document Type//EN" "lzx.dtd">
      <canvas width="200">
        <text>Hello World!</text>
      </canvas>

      If this doesn't work on your computer, please let me know and I'll look into this in more detail.
      -Gerald

       
    • Peter

      Peter - 2007-01-19

      Gerald,

      You're awesome.........

      Hey, I couldn't get it to work, but I think that's more a reflection of my novice ability rather than anything else. Yes, *.lzx files always take this DTD so it would be fantastic if you could add lzx to the optional file associations that can be set at installation time.

      I copied your example and then tried to add an OpenLaszlo tag. Should I be seeing something like predictive text or a list of possible attributes for that tag? Again, no reflection on your editor. I'm on a steep learning curve with all this stuff, but I think the potential is huge for RIAs.

      The OpenLaszlo IDE is in Eclipse and although it has some WYSIWYG it sucks... it labors to parse anything against the DTD (if that's the right term). If you integrate this, the OpenLaszlo community would love XML Copy Editor and flock to it in numbers. WYSIWYG isn't really that useful for OpenLaszlo as the visual component layout is secondary to the actual classes that are built by the developer. That's where the DTD parsing is invaluable.

      Thanks again,

      Cheers,
      Peter

       
      • gnschmidt

        gnschmidt - 2007-01-19

        Thanks Peter, no problem, I'll try to get 1.0.8.9 with lzx support out asap.

        <Should I be seeing something like predictive text or a list of possible attributes for that tag?>
        Yes. Tag/attribute completion and the insertion helpers did work on my computer when I tried the DTD earlier, so I think it will be ok.

        I will let you know when it's done.
        -Gerald

         
    • Nobody/Anonymous

       
    • gnschmidt

      gnschmidt - 2007-01-26

      The OpenLaszlo DTD is available as of version 1.0.8.9.

       
    • Peter

      Peter - 2007-02-03

      Gerald,

      Works beautifully.... thanks....

      Peter

       
      • gnschmidt

        gnschmidt - 2007-02-03

        Thanks for letting me know,
        Gerald

         
    • Nobody/Anonymous

      Gerald,

      Just a quick note to let you know I've been using your editor for a while now for Open Laszlo development and it's brilliant. Keep up the good work

       
      • gnschmidt

        gnschmidt - 2007-03-02

        Thanks!
        -Gerald

         

Log in to post a comment.