Tag: Markup Languages
-
Fixing the problem with XSLT 2.0
I asked about my XSLT issues on the Gnome XSLT mailing list and got this reply, which neatly summarises where I was going wrong… (though the being ‘shouted at’ part tells you a lot about the dysfunctional aspects of a lot of online software development, but I am used to that by now) The name […]
-
Using XSLT to manipulate an SVG file
I am generating a lot of the graphics for my project using Scalable Vector Graphics (SVG) – an XML format. The advantages of SVG are obvious – it is human readable, it preserves some of the data in the output (eg in the relative placing of the dots on a graph), Groovy has good support […]
-
O’Reilly free ebook on HTML 5
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 […]
-
XPath tool
This is a helpful XPath tool if you are looking to sharpen your skills. You can test your XPath expressions online, and even load your own file to check against. Related articles EXPath – Standards for Portable XPath Extensions (expath.org) FIM2010-Uniqueness Checking In RCDC’s (identityminded.wordpress.com) SXML Tools Tutorial (modis.ispras.ru) What We Did Wrong: NPR Improves […]
-
XSLT conundrum solved
I had a moment of epiphany today about my XSLT problem – the answer is not to seek to append stuff to the end of the document, but to get the template right in the first place eg: <xsl:template match=”/dataroot”> <html> <body> <h2>Report</h2> <div title=”Summaries”> <xsl:apply-templates select=”Headlines” /> </div> <div title=”Fulltext”> <xsl:apply-templates select=”Headlines/Headline” /></div> </body> […]
-
How can I do this in XSLT?
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 […]