-------------------------------- Title -------------------------------- XML Output and the Debug Page -------------------------------- Description -------------------------------- Once the sections have been set up and the data sources have been configured in Symphony, XML output can be attached to a page to be processed using the XSLT page template specified in the Body field of the page configuration. The result document can be XML, HTML or text. -------------------------------- Body -------------------------------- The purpose of configuring data sources is to produce the XML output that XSLT page templates can process to create XML, HTML or text to render to the browser. For Symphony, the goal is usually to produce HTML. The smaller the XML data source, the faster it is to build the XML, the sooner the processor can render the HTML and serve the page to the browser. So, it is important to optimize the XML output to include only what is necessary to build the page. The options to filter, sort, limit and paginate the data sources provide several options to optimize the performance of the site. Symphony provides a means of being able to view the XSLT Page Parameters, the XML data, and to analyze performance data by providing debug information in the browser. If an admin user or Author is logged in to the Symphony admin, front end pages are given the ability to display debug information. Simply add `?debug` to the page URL to view Page Parameters, XML Output, XSLT page templates and utilities, Result and Profile data. Refer to the [documentation](http://symphony-cms.com/documentation/templating/#sec-4) for more information. #### Page Parameters The following page parameters are available for use in XSLT page templates to provide information about the current date and time, the selected page, path and URL, and other details about the site and user data. * $today * $current-time * $this-year * $this-month * $this-day * $timezone * $website-name * $page-title * $root * $workspace * $root-page * $current-page * $current-page-id * $current-path * $parent-path * $current-url * $upload-limit * $symphony-build * $entry * $cookie-username * $cookie-pass Custom data source parameters, created when specifying Parameter Output Options for data sources, are added at the bottom of the list. For example, when I created the Section data source, I configured the Parameter Output to use the System ID field. This custom data source parameter will appear at the bottom of the list of parameters in the parameter pool. * $ds-section By filtering this data source to include only those entries where the Title field matched the $current-page parameter, I ensure that the Data Source Parameter for the Section data source will output a single ID number. I can then use this ID number to filter other data sources. ##### Global Parameter Loader Extension Using the [Global Parameter Loader](http://github.com/carsten/globalparamloader/) extension, it is possible to add sets of parameters to Symphony’s parameter pool while excluding specified pages. Parameter values can be created by valid PHP code. #### XML The XML output is built by Symphony from the data sources attached to a page. Symphony queries the MySQL database and builds the XML with `data` as the root node. Each section is added as a child node of the `data` node with an element name equal to the url-encoded string value of the section label. Each section entry is included as a child of the section node with the element name `entry` and an `id` attribute indicating the System ID. Each entry node has a child node for every field specified as Included Elements in the data source configuration. Fields with the possibility of multiple values will contain `item` nodes for each value. ##### Example XML Output The XML for [this test entry](http://designprojectx.com/journal/the-title-of-my-entry/) looks like this:
Categories
Applications Design History Ideas Technology
Entries
XML Output and the Debug Page

Once the sections have been set up and the data sources have been configured in Symphony, XML output can be attached to a page to be processed using the XSLT page template specified in the Body field of the page configuration. The result document can be XML, HTML or text.

Tutorials
Technology 2009-05-20 symphony cms xslt
Symphony Data Sources

Once the sections have been set up in Symphony, data sources can be configured to output XML that can be used by the XSLT page templates to output HTML pages. These are the data sources that have been used to create this site.

Tutorials
Technology 2009-05-20 symphony cms
Symphony Sections

In Symphony, creating Sections is a way of dynamically creating the database structure for your site and the navigation system of the Symphony admin area. This tutorial assumes that you have installed the integration branch of Symphony 2.0.2 from Github (although, this is not essential).

Tutorials
Technology 2009-05-20 symphony cms
Beyond Hello: An XSLT Page Template

I started with the basic Hello World example. This tutorial assumes that sections have been created in Symphony and data sources attached to a page. This example shows how I developed the page template that displays the entries that you are currently reading.

Tutorials
Technology 2009-05-20 symphony cms xslt
XSLT Glossary

Jesse Sutherland raised some questions about learning symphony on the Symphony forum. It seems to be a good time to further develop the documentation and add some tutorials to help beginners get acquainted with the system. A glossary of terms might be a good place to start.

Journal
Technology 2009-05-20 xslt
Viewing Entries as XML

To make the process of saving XML files of each entry a little easier, I thought I could create an XSL stylesheet that would output the XML of a single entry. I ended up using Marc Liyanage’s XML Pretty Printer template to create nicely indented XML files.

Journal
Technology 2009-05-18 xslt
Symphony Utilities

Utilities are XSLT templates that can be used for a number of different applications. XML can be transformed into text, html, or xml, so the applications can be virtually limitless.

Journal
Technology 2009-05-17 symphony cms
Maintaining a Simple Backup System in Symphony

I want to be able to have easy access to all my site content. I also want to be able to write the content in a text editor so that I can use the features that help the writing process go a lot smoother, such as multiple undos.

Journal
Technology 2009-05-17
Symphony Extensions

To get the most out of Symphony, we’re going to need to extend the core system using extensions. Out of the box, Symphony provides some very powerful features. But it assumes nothing about the type of site that we create. To extend the system, let’s explore the available extensions.

Tutorials
Technology 2009-05-16 extensions symphony cms
Spreading Myself Too Thin

So, I’ve got failed, half-finished, barely started web development / social media experiments scattered all over the web. Let’s see if I can remember:

Journal
Technology 2009-05-16
Under Construction

Continuing with my live build of a Symphony site

Journal
Technology 2009-05-16
Rapid Interactive Prototyping

I credit Andy Clarke with the idea of improving the approach of working with wireframes by using the Grey Box Method. I highly recommend his book, Trancending CSS, for both the fantastic content and beautiful design.

Journal
Technology 2009-05-07
Building a Blog with Symphony

A step-by-step tutorial to build a blog with XML and XSLT, using Symphony CMS

Journal
Technology 2009-05-06
Hello World: A Basic XSL Stylesheet

Developing a site with Symphony CMS starts with a basic XSL stylesheet. This is the traditional “Hello, world” example.

Tutorials
Technology 2009-05-05 symphony cms
Fluid 960 Grid System

Nathan Smith created the 960 Grid System as a CSS framework that provides classes to easily create web pages that can be designed with a 12-column or 16-column grid. I decided to extend his grids as the Fluid 960 Grid System for fluid layouts.

Journal
Technology 2009-05-05 960 grid system css framework
Creating a Data Structure in Symphony

Symphony CMS allows the developer the freedom to create a data structure that suits the content of the site. I won’t be straying far from the usual, to demonstrate the basics. We can always extend these data structures at any time, although, it’s better to have a clear idea in mind at the outset.

Journal
Technology 2009-05-05 symphony cms
The Title of My Entry

A brief description of my entry.

Journal
2009-05-05
Let's Get Started ... Again

Then, let’s see if I can finish

The thing is, when is something really finished on the web? The web is fluid. It is constantly evolving. There’s always more to learn. So, I think “finished” will always be an elusive goal.

About
2009-05-04
This Looks Broken

Expect things to be broken here.

I would be surprised if they are not.

About
Technology 2009-05-04
What is this?

It is a live build of Symphony

It started out as a live build of a Symphony site during An Event Apart, while listening to Jeffrey Zeldman and Eric Meyer, and many other fascinating people.

About
Technology 2009-05-04 an event apart symphony cms
Design Project X

A site about learning by doing

This is my playground, my sandbox for projects that I am toying with. I learn by doing. So this is where I do some of my stuff.

Home
Technology 2009-05-01
Entries
The Title of My Entry

A brief description of my entry.

This is the body of my entry, using Markdown to format the text as HTML, using the Symphony Markdown extension.

Journal
2009-05-05 Yes
Home index Journal XML XML Text text Tutorials Examples Hello About
Sections
Journal Content
Types
Bookmarks Books Files Photos Sites
Using XPath, the values of each element, attribute, and text node can be processed using the XSLT page template to be copied, transformed and output to the result document. -------------------------------- Date -------------------------------- 20 May 2009 8:31pm -------------------------------- Section -------------------------------- Tutorials -------------------------------- Category -------------------------------- Technology -------------------------------- Tags -------------------------------- symphony cms, xslt