Greg Beech's Website

June 2006 - Greg Beech's Tech Blog

  • 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