Subject: Re: [xsl] XHTML substitution question From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Sat, 22 Apr 2006 04:12:23 -0400 |
I would like to substitute values for the language, description, and keyword metatags in my stylesheet below.
How could I accomplish this?
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" indent="yes"/>
<xsl:template match="/">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="language substitution here" lang="language substitution here">
<head>
<title><xsl:value-of select="manufacturer"/> <xsl:value-of select="model"/></title>
<meta name="description" content="description substitution here"/>
<meta name="keywords" content="keyword substitution here"/>
<meta http-equiv="Content-Language" content="language substitution here"/>
</head> <body> blah blah blah </body> </html> </xsl:template> </xsl:stylesheet>
-- Registration open for XSLT/XSL-FO training: Wash.,DC 2006-06-12/16 Also for XSLT/XSL-FO training: Minneapolis, MN 2006-07-31/08-04 Also for XML/XSLT/XSL-FO training:Birmingham,England 2006-05-22/25 Also for XSLT/XSL-FO training: Copenhagen,Denmark 2006-05-08/11 World-wide on-site corporate, govt. & user group XML/XSL 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 Aug'05 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] XHTML substitution question, Kerry Kobashi | Thread | RE: [xsl] XHTML substitution questi, Michael Kay |
[xsl] XHTML substitution question, Kerry Kobashi | Date | RE: [xsl] Is there a way to tell if, Michael Kay |
Month |