Dear Wiki user, You have subscribed to a wiki page or wiki category on "Lenya Wiki" for change notification.
The following page has been changed by drseuk: http://wiki.apache.org/lenya/HowToEditCustomDoctypesWithBXESampleXSLFile New page: = Sample image2xhtml.xsl file for a custom "image" doctype = Note that if you wanted to be able to edit the lenya meta data as well then you'd need to uncomment it and move it inside the edit div. <?xml version="1.0" encoding="UTF-8" ?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:image="http://www.ngrm.org.uk/xmlns/image/1.0" xmlns:lenya="http://apache.org/cocoon/lenya/page-envelope/1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns="http://www.w3.org/1999/xhtml" exclude-result-prefixes="lenya image" > <xsl:param name="rendertype" select="''"/> <xsl:param name="nodeid"/> <xsl:template match="/image:image"> <!-- <xsl:copy-of select="lenya:meta"/> --> <xsl:choose> <xsl:when test="$rendertype = 'edit'"> <div id="body"> <xsl:attribute name="bxe_xpath">/image:image</xsl:attribute> <image:title><xsl:value-of select="image:title" /></image:title> <image:description><xsl:value-of select="image:description" /></image:description> <image:attribution><xsl:value-of select="image:attribution" /></image:attribution> </div> </xsl:when> <xsl:otherwise> <div id="body"> <h1><xsl:value-of select="image:title" /></h1> <p><xsl:value-of select="image:description" /></p> <p><xsl:value-of select="image:attribution" /></p> </div> </xsl:otherwise> </xsl:choose> </xsl:template> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
