Greg Beech's Website

Browse by Tags

  • Ivory tower protocol wars

    There seem to be a lot of blog entries at the moment arguing over the relative merits of XML, JSON, YAML, S-Expressions, etc. as a data interchange format, and Web Services, WS-* Services and REST-style as the application protocol implementation. But while various articles make interesting academic points about which format is more human readable/easier to parse/represents numbers natively/allows cyclic...
  • Using xsl:for-each is almost always wrong

    In fact I can't think of a single place where it is a good idea to use xsl:for-each, but in software there are very few absolutes and so its possible there might be one or two. By replacing it with xsl:apply-templates you can make your XSLT stylesheet flatter in structure, easier to read, more flexible and more maintainable. To root this in the real world, lets take a small piece of XML that we...
    Filed under:
  • Scaling values in XML using XSLT

    An interesting problem landed on my lap a couple of days ago: We have a UI which uses XML for layout including the sizes of the on-screen components, and need to be able to scale it up or down for zooming or different screen resolutions. I figured this could be done with a fairly simple XSLT stylesheet, although it did get a bit more complex when I found we also needed to scale the values in constructs...
    Filed under:
Copyright (C) Greg Beech. All rights reserved.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems