I have been using Apache ANT within Eclipse to run XSLT. The advantage to using ANT is you can easily setup a processing pipeline utilizing various XSLT filters.
Example Ant Target:
<target name="Run-XSLT-Filter" >
<xslt style="myfile.xsl" in="example.xml" out="example-reloaded.xml">
<!--add your favorite XSLT Processor here-->
I saw a clever style sheet implementation this week. It determined the correct page layout size using the xml:lang attribute. If xml:lang is set to anything other then “en” use the International ISO standard A4 size!
US Letter is actually the most common paper size for office use in several other countries, including Canada, Mexico, Bolivia, Colombia, Venezuela, the Philippines, and Chile so there are a few more language codes that should be added for the US Letter size if you are doing business there.
Comments Off on Determining if XML Content should be printed on 8.5 x 11 or A4 Paper
It’s two in the morning. I’ve been done with the content of the document I’m working on for two hours and I just finished selecting the fonts I’m going to use. This is kinda geeky even by my standards.
I blame “The NON-DESIGNER’S COLLECTION” by Robin Williams and John TOLLETT. After reading the three books I guarantee you will never look at serif and sans serif fonts the same way again. After a couple of arduous hours, I’ve finally selected “Franklin Gothic Medium” as my sans serif font and “Book Antiqua” as my serif font, although I would have preferred to use “RotisSemiSerif” but didn’t feel like paying 200 bucks for the font.
Downloaded the latest version of the <oXygen>
XML IDE last night and was impressed with what I saw. <oXygen> is cross platform and supports both Linux and Windows as well as the Eclipse IDE. One things that I have always like about the Altova XML Spy suite (that they remove from their community edition
) is the ability to collapse an element in the edit interface. This comes in really handy when working with complex documents. <oXygen> also has a nice Schema interface, XPATH 2.0 interface and diffing tool.
Altova charges big bucks for all of this functionality. The equivalent functionality in <oXygen> for 1/4 the price, cross platform to boot? Summary good deal!
NOTE: If you are running <oXygen> under Linux you do need a Sun JVM. The JVM that comes with the Fedora Core 4 & 5 distributions is not supported. To make it work in Fedora Core, rename the supplied /usr/bin/java binary to java.old and then include a link called java to the SUN JVM.
A detailed description of the Arbortext 5.1 XSL FO support is
A good way to add seperators and dots to a line on a page.
A common mistake is to put provisional-distance-between-starts on the fo:list-item element instead of the fo:list-block element.
You can’t have static content (ie stuff for headers and footers in the fo:flow element)! Put it before.
Interesting debate. Like Norm I’d prefer an XML expression of CSS.