[thelist] Using php to transform xml
chris.price at choctaw.co.uk
Thu May 24 16:17:39 CDT 2012
I know I should probably do a proper course on xml and xslt but I just need
a really quick solution for this small job - then I can probe further.
I have an xml file with nested tasks:
<description>Learn to walk</description>
<notes>Gaining strength and balance</notes>
I want to output xhtml so that each task has a container with a class
equivalent to its 'status', eg. <div
This is a snippet of my xsl file:
<span><xsl:value-of select="status" /></span>
<span class='title'><xsl:value-of select="title" /></span>
<span class='description'><xsl:value-of select="description" /></span>
<span class='notes'><xsl:value-of select="notes" /></span>
I don't want a 'status' span, I want it to be the class of the div.
Does this make sense and is there a relatively simple solution?
0777 629 0227
Design is my native language
Choctaw Media Ltd is a company registered in England and Wales (04627649)
More information about the thelist