Subject: [xsl] Losing an attribute in transformation From: "Tracey Zellmann" <tracey.zellmann@xxxxxxxxxxx> Date: Thu, 13 Jul 2006 20:18:34 -0400 |
example.xsl <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml"> <xsl:output doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" method="html" indent="yes" encoding="ISO-8859-1" /> <xsl:template match="page"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" > <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/> <title> Example </title> </head> <body> <xsl:apply-templates mode="xh" select="content/p" /> </body> </html> </xsl:template> <xsl:template match="*" mode="xh"> <xsl:element name="{local-name()}" namespace="http://www.w3.org/1999/xhtml"> <xsl:apply-templates mode="xh" /> </xsl:element> </xsl:template> </xsl:stylesheet>
Everything validates as xhtml strict. However, I have lost the class="book-title" part of the opening span tag.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Re: RSS 2.0 to RSS 1.0 X, David Carlisle | Thread | Re: [xsl] Losing an attribute in tr, David Carlisle |
Re: [xsl] Re: Keeping a running tot, Tracey Zellmann | Date | Re: [xsl] Losing an attribute in tr, David Carlisle |
Month |