AnsweredAssumed Answered

How to add meta data(Keywords)

Question asked by amitbhardwaj on Sep 4, 2008
Latest reply on Sep 17, 2008 by amitbhardwaj
Hi friends
I have used xsd and xsl to create a webform. I have captured data using the web form, which gave me an HTML and an xml output.
My problem is that i have to add some keywords to those html pages (these keywords are given by user only at the time of html page creation)
These keywords helps in search for those web pages.

My XSD file is
<?xml version="1.0"?>

<xs:schema xmlns:xs=""

   <!– defines the form for creating a navigation hierarchy –>
   <xs:element name="Template1">
            <xs:element name="Imp_Keywords" type="xs:normalizedString" />
            <xs:element name="Description" type="xs:string"/>

My XSL File
<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.0" xmlns:xhtml=""
   xmlns:fn="" exclude-result-prefixes="xhtml">
   <xsl:output method="html" encoding="UTF-8" indent="yes"
      doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"

   <xsl:preserve-space elements="*"/>

   <xsl:template match="/">
            <META NAME="KEYWORDS" CONTENT="/nf:Template1/nf:Imp_Keywords"/>
         <td colspan="2">
            <xsl:value-of select="/nf:Template1/nf:Description" disable-output-escaping="yes"/>

but this code does not work in case of keywords
Please help me
Thanks in advance