Cannot figure out what is wrong with this stylesheet - attach it to any xml, it doesn't actually use the xml in this stripped down example:

<?xml version='1.0' encoding='ISO-8859-1'?>
<xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
	<xsl:output method='html' indent='yes' media-type='text/html' />

	<xsl:variable name='columns' select='10' />

	<xsl:template match='/'>
					<xsl:attribute name='colspan'><xsl:value-of select='floor( $columns / 3 )' /></xsl:attribute>
					column 1
					<xsl:attribute name='colspan'><xsl:value-of select='ceiling( $columns / 3 )' /></xsl:attribute>
					column 2
					<xsl:attribute name='colspan'><xsl:value-of select='floor( $columns / 3 )' /></xsl:attribute>
					column 3


Firefox keeps telling me Error loading stylesheet: XPath parse failure: Name or Nodetype test expected: (yeah it stops there)
the error reporting tool tells me it's apparently having an issue with the closing attribute tag...

8 Years
Discussion Span
Last Post by DaShiVa

Again. slightly obvions answer. Seems as if posting here just helps me see the stupid thing I did, probably because I can't figure out how to delete a post...

Anyhows, yeah, I was using '/' instead of 'div'.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.