Hi, I don't know if this will help anyone but we had some problems with alt tags and images in our lenya implementation (1.2.3). We fixed them and wanted to contribute the fixes back to the community.
This patch fixes some broken image handling in kupusave.xsl as well as sets the default alt text of an image to the title you gave it when you imported the asset (it used to use the wrong field so it always ended up blank). Good luck, -mm
--- src/webapp/lenya/resources/kupup/apache-lenya/lenya/drawers/publication_image_library.xml.jx Tue Oct 11 15:01:12 2005 +++ src/webapp/lenya/resources/kupu/apache-lenya/lenya/drawers/publication_image_library.xml.jx Wed May 4 18:39:57 2005 @@ -12,8 +12,8 @@ <items> <jx:forEach var="info" items="${imageInfos}" begin="0" end="${imageInfos.size()}" step="1"> <resource id="${info.url}"> - <title>${info.title}</title> + <title>${info.name}</title> <uri>${info.url}</uri> <description>${info.title}</description> <preview>${info.url}</preview> --- src/webapp/lenya/resources/kupu/apache-lenya/lenya/pageassets2kupulibrary.xsl Tue Oct 11 14:50:27 2005 +++ src/webapp/lenya/resources/kupu/apache-lenya/lenya/pageassets2kupulibrary.xsl Wed May 4 18:40:03 2005 @@ -35,8 +35,8 @@ </xsl:variable> <resource id="{$resource-url}"> - <title><xsl:value-of select="dc:title"/></title> + <title><xsl:value-of select="dc:source"/></title> <uri><xsl:value-of select="$resource-url"/></uri> <icon><xsl:value-of select="$iconUrl"/></icon> <description><xsl:value-of select="dc:title"/></description> --- src/webapp/lenya/resources/kupu/apache-lenya/lenya/kupusave.xsl Thu Sep 15 11:03:18 2005 +++ src/webapp/lenya/resources/kupu/apache-lenya/lenya/kupusave.xsl Wed May 4 18:39:58 2005 @@ -33,13 +33,10 @@ <!-- this template converts the img tag to object for more, see http://www.xml.com/pub/a/2003/07/02/dive.html --> -<!-- this is totally frickin broken - MM <xsl:template match="xhtml:img"> <object> <xsl:attribute name="data"> ---> <!-- strip the nodeid out again (it is not saved in the object @data) --> -<!-- <xsl:choose> <xsl:when test="starts-with(@src, '/')"> <xsl:value-of select="@src"/> @@ -52,9 +49,7 @@ <xsl:attribute name="title"> <xsl:value-of select="@alt"/> </xsl:attribute> ---> <!-- use the rarely-used ismap to roundtrip the type attribute for the object element --> -<!-- <xsl:attribute name="type"> <xsl:value-of select="@ismap"/> </xsl:attribute> @@ -70,7 +65,6 @@ </xsl:if> </object> </xsl:template> ---> <!-- convert to semantic markup --> <xsl:template match="xhtml:b">
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]