Subject: Re: [xsl] Transforming augmented XHTML to XHTML using XSLT From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Fri, 21 Mar 2008 17:24:20 -0400 |
I have the following but cannot seem to get it to match head or body :-
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns="http://www.w3.org/1999/xhtml" >
<xsl:output method="xml" encoding="UTF-8" indent="yes"/>
<xsl:template match="/"> <html> <xsl:apply-templates select="." mode="html"/> </html> </xsl:template>
<xsl:template match="head" mode="html"> head <xsl:copy-of select="*"/> </xsl:template>
<xsl:template match="body" mode="html"> body <xsl:copy-of select="*"/> </xsl:template>
</xsl:stylesheet>
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns="h:http://www.w3.org/1999/xhtml" >
<xsl:template match="/"> <html> <xsl:apply-templates select="." mode="html"/> </html> </xsl:template>
<xsl:template match="h:head" mode="html"> head <xsl:copy-of select="*"/> </xsl:template>
<xsl:template match="h:body" mode="html"> body <xsl:copy-of select="*"/> </xsl:template>
-- Upcoming: UBL Apr.22,24; genericode code lists Apr.23; Rome,Italy World-wide corporate, govt. & user group XML, XSL and UBL training RSS feeds: publicly-available developer resources and training G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Transforming augmented XHTML , Aaron Gray | Thread | Re: [xsl] Transforming augmented XH, Robert Koberg |
[xsl] Transforming augmented XHTML , Aaron Gray | Date | Re: [xsl] Transforming augmented XH, Robert Koberg |
Month |