Dixie Blake Foster

Library XSLT Transformations

Transformations

The transformations in About the Collections on the right are based on library4.xml. For now, each transformation uses a separate copy of the .xml that references a unique <?xml-stylesheet"?>.

This follows the schema described in library4.xsd

Transformation 1: Library list

Success -- almost. The Library List at left is complete, except for a pesky formatting problem. I can't seem to get a plain old space between two selected data values in my address formatting. I resorted to extraneous commas for the moment. The smallest things sometimes eat up the most time.

Highlights of library4a.xsl include:

This .xsl does not make extensive use of XPath. It steps down through library4.xml.

Transformation 2: Books available in the UK

Coming soon!
This transformation will parse the .xml file looking for items that are available in the UK based on the address of the library branch that holds it. Should be fun. It will be jumping around the .xml so it will make greater use of XPath.

Transformation 3: Server-side transformation

I hope this transformation will be able to do things like format a gYear datatype for a BCE date to something human-readable. According to the ISO 8601 standard, gYear -0001 would translate as -2 BCE. this requires Java scripting.

Simmons Privacy Policy | Contact Me | ©2006 Dixie Blake Foster | 22-Mar-2006 | Valid HTML 4.01 Transitional