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 The comment on the change is: Still learning ;-) ------------------------------------------------------------------------------ = 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. + Note this will also allow you to edit the lenya meta data as lenya:meta is a child element of image. If you don't want the meta data to be editable with BXE, you'd have to wrap a new element around your non-meta data elements and change the bxe_path to select that instead. <?xml version="1.0" encoding="UTF-8" ?> @@ -20, +20 @@ <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> + <xsl:copy-of select="." /> - <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> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
