Tagged: HTML

O’Reilly free ebook on HTML 5


HTML5 MMW Desktop

Must be worth a download if you are wondering what HTML 5 is all about – go here.

You have to register but I can assure you it is free – as I have a copy and did not enter any credit card details.

“What is HTML5?” is about 10 pages long – so a read on your next commute?

How can I do this in XSLT?


Diagram of the basic elements and processing f...

Image via Wikipedia

I have a very simple (single relation) database, of news stories that I export to xml, so I get something like this:

<?xml?>
<headline>
<top>This is a story </top>
<summary>Some summary of the story</summary>
<full_text>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed pharetra sagittis risus a ultrices. In a lectus eu nunc scelerisque gravida ac elementum felis. Phasellus. </full_text>
</headline>

And so on….

What I want to do is use an XSL stylesheet to convert this into some HTML where the top line is printed, then the summary and then a link to the full text, which is at the bottom of the document.

Writing the XSL that will extract the top line and the summary is easy, but how can I get a link to what is, in effect, some appended text at the end of the document? Is it even possible?

I have a huge and authoritative tome on XSLT  – XSLT: Mastering XML Transformations. For Beginners and Advanced Users – which I will now consult, but anyone know before I delve in?

XML: any use?


I stumbled across the site XMLSucks.com just now when reading a comment on slashdot about the idea that there was an FBI mandated “backdoor” in OpenBSD.

Right now I am working on some coursework with XML and so the site has my sympathy. For sure, XML has its uses - SVG seems like a pretty good idea to me and I have used it recently to generate graphics to represent the processes running on a Linux box.

But freely mixing it with HTML on the web? I am inclined to (mostly) agree with the statement on the site:

XML is bloated. XMLis fugly. XML is only “human-readable” if you’re willing to stretch the definition of “human-readable.” The same goes for the proposed bloatware of HTML5. Anyone looking at the spec must be shaking their heads. Sure, it’s better than the now-abandoned xhtml 2.0, but that’s not saying much. I