All in the <head>

– Ponderings & code by Drew McLellan –

– Live from The Internets since 2003 –

About

XML, DTD, Radio Silence

30 October 2003

My workchums Paul and Colleen have taken pity on me and lent me a copy of this book to help solve my XML woes. It’s a great book, and was produced by mostly the same team as worked on my book, so that can’t be bad. Goes into a lot of the basics and not-so-basics of XML stuff in PHP on a really practical level. It’s chocked full of code. Nice.

It sparked off a thought that’s been nagging me for a little while – I must learn more about writing DTDs. At the moment I just use XMLSpy to generate DTDs from my XML, but I’m never pleased with the result. It has a tendency to take every value you’ve ever used for an attribute and specify those values as a finite list of options. This works fine – until you specify a different value and then your XML won’t load. Drat. It doesn’t look at all difficult, it’s just that I’ve never bothered to learn. I’m going to learn. W3Schools have a good tutorial on DTDs, so I’ll probably work through that. I pays to know these things inside-out. I like to know these things.

Whilst vaguely on the topic of XMLSpy, I have to say I really love working with a dedicated XML editor, even if XMLSpy itself isn’t so great. The mere fact that the editor will read any DTD you attach and give you code hints based on it is awesome. I love that. You can be authoring an XHTML 1.0 Strict document and it’ll error if you try to use any tags or attributes that aren’t defined in the DTD. If you’ve authored an XHTML document in XMLSpy you can guarantee it’ll validate, because the software continually warns you as you go along. Sweet. All editors should do this.

Anyway, further to yesterday’s post about phones, the reason I dislike my T68i so much is its appalling user interface. Ponder this one thing. To switch the sounds off, you have to select a menu item called “Turn on silent”. That’s soo dumb. It’s not “Turn off sounds”, it’s “Turn on an absence of sound” which is completely obscure. I really hate that – it’s like Ericsson were soo far up their own arse that they couldn’t see that something like “Turn on silent” makes absolutely no sense to a non-technical user, and is pretty insulting to a technical one. That’s just one example, but the whole phone is full of them. Blurgh. Nokia phones are designed with so much more consideration.

- Drew McLellan

Comments

  1. § jackal: I never even thought of using XMLSpy to write my XHTML in... I usually run it through a validator every once in a while to make sure things are running smoothly.

    awesome tip
    —Mike
  2. § Dysfunksional.Monkey: I think thats more of a usability issue with phones across the board. Someone really needs to sit down and design an interface standard or something.

    I don’t like the fact that while using the T610 you can’t press > (joystick left) to navigate to the submenu of the highlighted menu list object, or
  3. § Drew: or ..?
  4. § tomjleeds: Hehe, that’s what I was thinking Drew!

    I admit, there are a few major problems with the T68i GUI. I think the ’Turn on Silent’ thing comes from hitting the Power button on Nokias and selecting Silent. I hope it’s that anyway, as otherwise SE are really going to have problems!
  5. § Jesse: I thought about getting the T68i or the T616 but then went with the Nokia 7210 (might be the same model name in the UK). The P800 looks really cool too but my loyalty to Nokia saved me from it. I love the 7210... no really love it. Just wish it had bluetooth and GSM had better coverage in Canada.

    Now that XMLSpy - anything like that for a Mac that you would recommend?
  6. § Drew: This looks interesting:
    http://www.cladonia.com/.

    I haven’t tried it myself, but it’s built in Java to run on multiple platforms.
  7. § Paul: Hi Drew,

    Thanks for the plug! It is a good book, though I must admit, since I am currently using the disgustingly inadequate ASP to code in at the moment, I haven't had an opportunity to actually have any fun with XML and PHP.

    One day I will actually leave the office on time and go home to do some real work! heh!

    - Paul
  8. § Brian: The T68i thing sounds a bit Windowsy.

    Click the Start button and select Turn Off Computer.
  9. § Drew: Paul - you’ll have to arrive at the office on time first! ;)
  10. § Dysfunksional.Monkey: Oops. Dunno what happened there. Must have gotten distracted. :os
  11. § Gabriel McGoldrick: V1.1 release of Exchanger XML Editor from www.cladonia.com

    You may be interested to know that there is a new release of the Exchanger editor. This release includes better integration with Mac OSX and built-in support for editing XHTML, XSLT, XSLFO, Docbook, SVG, etc.

    Features include: Schema Based Editing; Tag Prompting; Validation against DTD, XML Schema and RelaxNG; Tree View and Outliner for Tag Free editing; XPath and Regular expression searches; Schema Viewer and Conversion; XSLT and XSLFO Transformations; Comprehensive Project Management; SVG Viewer and Conversion; Easy SOAP Invocations.

Photographs

Work With Me

edgeofmyseat.com logo

At edgeofmyseat.com we build custom content management systems, ecommerce solutions and develop web apps.

Follow me

Recent Links

Affiliation

  • Web Standards Project
  • Britpack
  • 24 ways

I made

Perch - a really little cms

About Drew McLellan

Photo of Drew McLellan

Drew McLellan (@drewm) has been hacking on the web since around 1996 following an unfortunate incident with a margarine tub. Since then he’s spread himself between both front- and back-end development projects, and now is Director and Senior Web Developer at edgeofmyseat.com in Maidenhead, UK (GEO: 51.5217, -0.7177). Prior to this, Drew was a Web Developer for Yahoo!, and before that primarily worked as a technical lead within design and branding agencies for clients such as Nissan, Goodyear Dunlop, Siemens/Bosch, Cadburys, ICI Dulux and Virgin.net. Somewhere along the way, Drew managed to get himself embroiled with Dreamweaver and was made an early Macromedia Evangelist for that product. This lead to book deals, public appearances, fame, glory, and his eventual downfall.

Picking himself up again, Drew is now a strong advocate for best practises, and stood as Group Lead for The Web Standards Project 2006-08. He has had articles published by A List Apart, Adobe, and O’Reilly Media’s XML.com, mostly due to mistaken identity. Drew is a proponent of the lower-case semantic web, and is currently expending energies in the direction of the microformats movement, with particular interests in making parsers an off-the-shelf commodity and developing simple UI conventions. He writes here at all in the head and, with a little help from his friends, at 24 ways.