There are some debates about declining use of XML and rising use of JSON. Some people love XML, some people love JSON. I love SAX: assuming SAX serializer/deserializers exist, anything can be treated as XML.
For example, you can write XSLT stylesheets transforming JSON: JSON SAX deserializer was already created by me in my previous article "How to Convert JSON to XML using ANTLR" and JSON SAX serializer is fairly easy to write. Once you have all that, you can transform JSON using XSLT:
In the previous article I have shown how to convert JSON to XML using XSLT 2.0 capabilities.
The problem w/ implementing parsers in XSLT, is conversion from flat structure to tree structure. XSLT was simply NOT created for such kind of conversions. For example, JSON to XML transformation is using XML Pipeline of mode1, mode2, mode3 to build a tree structure from a sequence of tokens generated by regexp in mode0.
Canonical has a very ugly habit of removing from repositories applications that you use and love, but they think these are not "canonical".
For example:
In my previous article I have shown how to preprocess XSLT using custom SAX ContentHandler that transforms XSLT source code on-the-fly.
The reason SAX transformation was chosen instead of simpler XSLT transformation is because SAX transformations preserve line and column information: if you will make an error in a preprocessed XSLT, XSLT processor will report exact line and column position of the error; if XSLT preprocessing was implemented in XSLT, line and column information would be distorted.
It is very often when you enable OpenID module in Drupal and try to login with OpenID, you receive Page not found, whilst everything works quite fine at localhost.
Next version of Ubuntu will include a new font, named "Ubuntu font", that will be used as default user interface font:
If you'll upgrade to Delphi 2010, you'll quickly notice that old code you were using to create threads, such as
XSLT 2.0 is powerful enough to process even non-XML input. For example, I have created a transformation that converts JSON text to well structured XML output:
The xsl:include/@mode patchset I have developed to ease XML Pipeline in XSLT is not good. The major problem is it won't work on closed-source XSLT processors (Saxon PE/EE for example).
In this article I will show how I have integrated Drupal feed from www.gerixsoft.com into WordPress application on LinkedIn.
In this article I will show the most efficient way of implementing XML Pipeline using native XSLT capabilities.
If user is uninstalling your application, it is reasonable to ask him what he did not liked in the application. Usually developers open web browser for submission of feedback.
In this articles I will show how to implement sending of such kind of feedback using desktop's regular mail application, such as Outlook and Thunderbird.
InnoSetup does not support Windows system font, it is using MS Sans Serif 8 instead.
Use the following code to fix this:
If you have applied my techniques fixing Large Fonts and System Font to all forms in your Delphi application, most likely there will be two forms still untouched. These will be the forms hidden inside MessageDlg and InputQuery VCL functions.
In this post I will show how to modify InputQuery to support System Font.
Most Delphi applications are using MS Sans Serif 8 as their default font, meanwhile Windows XP system font is Tahoma 8.25 and Windows Vista system font is Segoe UI.
Below code makes Delphi applications support Windows system font: