BIT320 Remix — XSLT

December 17, 2005

xml.apache.org

Topics:

Different open source tools, most of which use the Xerces implementation (DOM Level 1 & 2) as a base. Xerces itself is available in Java, C++, Perl, and COM

In del.icio.us/supermatt, 12/17/2005 | Original | Archive

Welcome to XMLSoftware

Topics:

James Tauber maintains an excellent collection of available XML software products sorted by category. Very up-to-date and with useful descriptions

In del.icio.us/supermatt, 12/17/2005 | Original | Archive

December 12, 2005

XSLT

Topics:

Information on XSLT and how to use it

In del.icio.us/williamhmacy3, 12/12/2005 | Original | Archive

December 11, 2005

Unicorn Enterprises SA

Topics:

XSLT processor for Windows written in C++ [Freeware].

In del.icio.us/supermatt, 12/11/2005 | Original | Archive

Zvon XSL Tutorial

Topics:

Interactive XSL training by examples

In del.icio.us/supermatt, 12/11/2005 | Original | Archive

Unofficial MSXML XSLT FAQ

Topics:

This is a simple URL that people can use when getting started with XSLT and IE. 19 FAQ (frequently asked questions) which are answered in great detail and with plenty of suggestions to resolve problems.

In del.icio.us/supermatt, 12/11/2005 | Original | Archive

December 8, 2005

XSLT/XPath Training Material

Topics:

Includes a free downloadable preview with helpful references

In del.icio.us/kevlers, 12/08/2005 | Original | Archive

Unicorn XSLT Processor

Topics:

Freeware XSLT processor for Windows written in C++

In del.icio.us/kevlers, 12/08/2005 | Original | Archive

XSLT and XPath reference card

Topics:

Quick XSLT and XPath reference card developed by Mulberry Technologies in PDF format

In del.icio.us/kevlers, 12/08/2005 | Original | Archive

Oreilly on XSLT

Topics:

XSLT documents a core technology for processing XML. Free chapter by O'Reilly

In del.icio.us/kevlers, 12/08/2005 | Original | Archive

MSDN Developer's Guide

Topics:

The successor to Extensible Stylesheet Language (XSL), XSL Transformations (XSLT) is an XML-based language that enables you to transform one class of XML document to another

In del.icio.us/kevlers, 12/08/2005 | Original | Archive

December 5, 2005

Change Directory the XPath & Linux Way

Topics:

PinkFootsie and Shady recently had a converation about the CD function in Linux. Shady gave some excellent advice to PinkFootsie:

“Some help might be found on this site that Blogstar found in response to a post Tiger Lilly.”

 

While reading Chapter 5: XPath Espresso, in the XSLT For Dummies book, they mention that the XPath commands mimic directory structure navigation commands. Things such as “..” represent the parent, while “.” represents self, and children can be accessed by “/child/child”..etc. I hadn’t made this connection until the until the book pointed it out. I think this is pretty cool and will help me remember the XPath commands now that they don’t seem so arbitrary. So just like in linux, to go up a directory you type “cd ..”, in XPath to access the parent you type “..”. Pretty cool if you ask me.

In Matt's Musings, 12/05/2005 | Original | Archive | Post to del.icio.us | Technorati

AJAX vs. desktop development

Topics:

How AJAX and stand-alone software are similar

In del.icio.us/mridge, 12/05/2005 | Original | Archive

November 30, 2005

The “value-of” “apply-templates”

Topics:

While reading throught the XSLT book (specifically chapter 4), I ran across examples using and and am confused by the difference. Take for example basic.p54-1.xsl:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  <xsl:template match=”score”>
    <xsl:apply-templates select=”grade”/> is the critic’s rating for the musical score of <xsl:apply-templates select=”film”/>
This produces the output: 100 is the critic’s rating for th emusical score of A Little Princess

Then, I substitued “xsl:value-of” for “xsl:apply-templates”. 

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  <xsl:template match=”score”>
    <xsl:value-of select=”grade”/> is the critic’s rating for the musical score of <xsl:value-of select=”film”/>

This produced the same result. So my question is, when you are trying to output literal values when do you use “xsl:apply-templates” and “xsl:value-of”? I think it might have something to do with the defaults but I’m not sure (since this section confused me a bit as well). Any thoughts?

In Matt's Musings, 11/30/2005 | Original | Archive | Post to del.icio.us | Technorati

November 29, 2005

After some spelunking

Topics:

Zee124 mentions some issues with leftover white space in response to a post by SuperMatt. Here’s the basic gist of the story. In XSLT — Chapter 4, Matt was playing around with basic.p54-2.xsl (available here) trying to get the additional information after the <movie> element to go away. He followed my advice to use empty <xsl:template/> rules to make the elements disappear, but was left with extra whitespace. Put concretely, Matt started with this:

<xsl:stylesheet xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" version=\"1.0\">
<!-- Sample from XSLT For Dummies, by Richard Wagner -->
  <xsl:template match=\"film\">
    <movie><xsl:apply-templates/></movie>
  </xsl:template>
</xsl:stylesheet>

Then, went to the equivalent of this:

<xsl:stylesheet xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" version=\"1.0\">
<!-- Sample from XSLT For Dummies, by Richard Wagner -->
  <xsl:template match=\"film\">
    <movie><xsl:apply-templates/></movie>
  </xsl:template>
	<xsl:template match=\"composer\"/>
	<xsl:template match=\"year\"/>
	<xsl:template match=\"grade\"/>
</xsl:stylesheet>

This got rid of the extra text but left in line feeds. There is an advanced method that will get rid of the line feeds in an element called <xsl:strip-space elements=”*”/> discussed on page 230 of the XSLT book. Here’s the final version using that element:

<xsl:stylesheet xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" version=\"1.0\">
	<xsl:strip-space elements=\"*\"/>
<!-- Sample from XSLT For Dummies, by Richard Wagner -->
  <xsl:template match=\"film\">
    <movie><xsl:apply-templates/></movie>
  </xsl:template>
	<xsl:template match=\"composer\"/>
	<xsl:template match=\"year\"/>
	<xsl:template match=\"grade\"/>
</xsl:stylesheet>

In Blogonautic Solutions, 11/29/2005 | Original | Archive | Post to del.icio.us | Technorati

November 26, 2005

XPath and XSLT Tutorial

Topics:

Covers XPath and then XSLT on an element by element basis

In del.icio.us/kevlers, 11/26/2005 | Original | Archive

XSL, XSLT, XML... FAQ

Topics:

Answers to frequently asked questions on XSL, XSLT. XML jargon explained, and how special characters are handled.

In del.icio.us/kevlers, 11/26/2005 | Original | Archive

Case Conversion

Topics:

Article on using XSLT to convert XML data from one case to another

In del.icio.us/kevlers, 11/26/2005 | Original | Archive

November 22, 2005

I have a fever, and the only cure is more white space

Topics:

Zee and Shady have been blogging a bit about the wonder that is XSLT. In class today, we talked about creating blank matches so all the information won’t show up. So I went ahead and created some blank matches for basic.p52-2.xsl ( )

It worked. Yeah! However, my output now has white space where the match occured. So I still have placeholders for the data, but no data. So I’m wondering, is there a way to get rid of white space? Is it going to show up on my output if I send it to the web?

Original basic.p54-2.xsl:
< ?xml version = '1.0'?>
< movie >A Little Princess < /movie >
Patrick Doyle
1995
100

asic.p54-2.xsl:
movie >A Little Princess < /movie >

In Matt's Musings, 11/22/2005 | Original | Archive | Post to del.icio.us | Technorati

November 20, 2005

Style-free XSLT Style Sheets

Topics:

To learn more on stylesheets, this is a great resource

In del.icio.us/supriya, 11/20/2005 | Original | Archive

Yet another resource on XSLT and xPath

Topics:

Looks like a great tutorial.

In del.icio.us/supriya, 11/20/2005 | Original | Archive

xPath

Topics:

Here is a good tutorial on xPath to answer Shady Waters' question in her blog

In del.icio.us/supriya, 11/20/2005 | Original | Archive

Templates in XSLT

Topics:

A good resource to learn about templates in XSLT as we learn these in class

In del.icio.us/supriya, 11/20/2005 | Original | Archive

Books on XSLT

Topics:

Using the book search feature on Google, I was able pull up a list of other references you can use to learn about XSLT

In del.icio.us/supriya, 11/20/2005 | Original | Archive

November 19, 2005

XSLT

Topics:

A great resource to learn more on XSLT

In del.icio.us/supriya, 11/19/2005 | Original | Archive