Hello again list!

 

Okay, thanks for all the feedback! Especially Kornel Lesinski for the link to (http://dpawson.co.uk/xsl/sect2/sect21.html) where I found (http://dpawson.co.uk/xsl/sect2/N4622.html), and this piece of code:

 

<xsl:template match="ImageInfo">
  <img src="">
</xsl:template>

 

I have never seen that done before with the XPath _expression_ in curly brackets. It’s not very widely documented at all!

 

So now, instead of using this XSL:

 

<meta name=”description”>

<xsl:attribute name="content">

<xsl:value-of select="base/[EMAIL PROTECTED]'description']" />

</xsl:attribute>

</meta>

 

Producing this HTML:

 

<meta name="description" content="Netring Media and Technology are a">
</meta>
 
I can use this:
 
        <meta name="description" content="{base/[EMAIL PROTECTED]'description']}" /> 
 
To produce this:
 
        <meta name="description" content="Netring Media and Technology are a …" />
 
Also, thanks to Bert Doorn for showing me where it says that a separate closing tag is forbidden for Meta tags. 
It’s always good when someone can point to a reference rather than just saying so.
 
I think that I will right a short entry on my site about this. Thanks all again for the help.
 
Regards,
Phil Baines

 

 

Netring media and technology

website: www.netring.co.uk

telephone: 01239 711 471


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Phil Baines
Sent: 20 January 2005 11:57
To: [email protected]
Subject: [WSG] meta tag standards

 

Hello List,

 

Is there anything wrong with closing meta tags like so:

 

    <meta name="keywords" content="Web, Development, Design, Hosting, Ecommerce, IT, Consultancy, Logos, Logo, Websites">
    </meta>
 
The reason that I ask is that I am developing our new company website (http://dev.netring.co.uk/netring2004 - I started it in 2004) and I am using XML and XSLT as the backend template system. The problem is that I can’t get XSLT to close my Meta tag (<meta />) in the way that I wish it to be.
 
I was wondering if there was actually anything wrong with closing it in a separate closing tag. 
 
Thanks for any advice,
Phil Baines

 

Netring media and technology

website: www.netring.co.uk

telephone: 01239 711 471 

 



The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorised. If you are not the intended recipient, any action taken or omitted to be taken in reliance on it, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this E-mail message is strictly prohibited and may be unlawful. If you have received this E-mail message in error, please notify us immediately. Please also destroy and delete the message from your computer.

The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorised. If you are not the intended recipient, any action taken or omitted to be taken in reliance on it, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this E-mail message is strictly prohibited and may be unlawful. If you have received this E-mail message in error, please notify us immediately. Please also destroy and delete the message from your computer.

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.7.1 - Release Date: 19/01/2005


--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.7.1 - Release Date: 19/01/2005


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.7.1 - Release Date: 19/01/2005

Reply via email to