XForms Everywhere

4/17/2007

CSS Tip: Centering HTML Button Content

Filed under: General — Erik Bruchez @ 6:33 am

This tip shows how to nicely center HTML button content vertically. You may be familiar with the HTML button tag, which allows you to create nice HTML form buttons. For example, you can create buttons containing an icon, like this:

Aligned button content

But if you don’t do anything special, depending on the font used, the text won’t be correctly aligned with the image:

Misaligned button content

So how do you fix it? It’s easy once you know it. The trick is to first surround your text inside the button with an HTML span element:

<button type="button">
    <img src="save.gif">
    <span>Label</span>
</button>

Then use the following CSS rules:

button img { vertical-align: middle }
button span { vertical-align: middle }

With Orbeon Forms, this tip also applies to the xforms:submit and xforms:trigger elements:

<xforms:trigger>
    <xforms:label>
        <xhtml:img src="save.gif"/>
        <xhtml:span>Label</xhtml:span>
    </xforms:label>
</xforms:trigger>

With Orbeon Forms, you can further refine the CSS as follows:

button.xforms-trigger img { vertical-align: middle }
button.xforms-trigger span { vertical-align: middle }

The result is nicely vertically centered content, whatever the font size used:

Aligned button content

4/6/2007

We’re Speaking at XML Prague in June

Filed under: News — Erik Bruchez @ 7:09 pm

XML Prague Logo

The XML Prague sessions are now online. We will talk about practical applications of XML pipelines.

Here is the abstract:

Applications of XML pipelines to web applications with XPL

Erik Bruchez, Orbeon

The XProc XML pipeline language is well on its way to be standardized at W3C. But, exactly, what are XML pipelines good for? And how do they work in practice?

In this talk, we attempt to answer these questions by presenting use cases for XML pipelines implemented with XPL, a close cousin of XProc. We show in particular how XML pipelines fill a niche in the constantly evolving web applications ecosystem. Can XML pipelines help deal with multiple web browsers? With REST services? With the plethora of syndication formats such as RSS and Atom? With Ajax? We suggest that the answer is yes in all these cases.

We also show how XML pipelines can play a particularly interesting role when used in conjunction with XForms.

The talk will feature live demonstrations using open source software.

Also check Norm Walsh’s entry on the topic for more details. And if you are attending XML Prague, please be sure to say hi!

4/5/2007

New XProc Working Draft

Filed under: News — Erik Bruchez @ 10:44 am

W3C Logo

The XML Processing Model Working Group has published a new Working Draft of XProc: An XML Pipeline Language.

Norm Walsh blogs more about it. We are getting just a tad closer from a standard XML pipeline language!

4/2/2007

Orbeon Forms 3.5.1 and 3.0.2 Released

Filed under: News — Erik Bruchez @ 12:06 am

We just released Orbeon Forms 3.5.1. This release is an update to Orbeon Forms 3.5 (see the Orbeon Forms 3.5 announcement) which brings performance improvements, the most notable one being the ability to combine JavaScript and CSS resources, as well as a series of bug-fixes.

The complete list of changes is available at:

http://www.orbeon.com/ops/doc/home-changes-35#changes-351

The latest example applications are online at:

http://www.orbeon.com/ops/

You can get Orbeon Forms 3.5 from the download page:

http://www.orbeon.com/forms/download

In addition, the following fixes have been backported to Orbeon PresentationServer 3.0.1 and released as version 3.0.2:

We do not recommend you use any version prior to the latest stable release of Orbeon Forms, but if you have applications deployed on Orbeon PresentationServer 3.0.1, you may consider upgrading to 3.0.2. You can get it from the ObjectWeb download page:

http://forge.objectweb.org/project/showfiles.php?group_id=168

The Orbeon team hopes you will enjoy these releases!

Powered by WordPress