473,394 Members | 2,160 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

meta tags

Hi,

I'm trying to use standard meta tags in an xsl doc and using cocoon as my
processor. The problem is that cocoon changes for example:

<meta name="keywords" content="test, test, test" />

to <meta content="test, test, test" name="keywords">

I hope that makes sense. The problem is that I am running some adds on my
site which don't understand the keywords when the tags are reversed like
this. Is there any way to get cocoon to just leave the tags alone. Any help
on this would be appreciated as I have been at this silly little thing for
hte last 7 hours now!!! :)

Brian.
--
get rid of the obvious if replying by mail
Jul 20 '05 #1
4 3701
Brian <br***@theobviousdotnet.ie> wrote:
I'm trying to use standard meta tags

What "standard" are you referring to?

It cannot be the XML standard, as it does not define _any_ elements.

You probably meant one of the HTML "standards" ? Which one?

XHTML maybe?

in an xsl doc and using cocoon as my
processor. The problem is that cocoon changes for example:

<meta name="keywords" content="test, test, test" />

to <meta content="test, test, test" name="keywords">

I hope it doesn't really do that, as it is no longer XML.

Did you mean in outputs:

<meta content="test, test, test" name="keywords"></meta>
or
<meta content="test, test, test" name="keywords" />

instead?

Or did you mean that the output is not XML (maybe it is SGML)?

I hope that makes sense. The problem is that I am running some adds on my

What are "adds"?

site which don't understand the keywords when the tags are reversed like
this.

The tags are not reversed, in fact, there are not plural "tags"
in the data you've shown, there is only a single "tag".
http://www.ucc.ie:8080/cocoon/xmlfaq#makeup

Is there any way to get cocoon to just leave the tags alone.

"content" and "name" are not tags, they are attributes.

Attributes can be in any order in XML, so

<gi x="X" y="Y">
and
<gi y="Y" x="X">

are *exactly equivalent* in XML.

Applications that depend on the order of attributes do not
comply with the XML standard (ie. they contain a bug).

Any help
on this would be appreciated

Fix the bug in your "adds".

as I have been at this silly little thing for
hte last 7 hours now!!! :)

That can happen with bugs. :-)
--
Tad McClellan SGML consulting
ta***@augustmail.com Perl programming
Fort Worth, Texas
Jul 20 '05 #2
>
What "standard" are you referring to?
I just meant normal meta tags. You must excuse my ignorance I have been
dropped in at the deepend by a web designer that has gone AWOL!.

Did you mean in outputs:

<meta content="test, test, test" name="keywords"></meta>
or
<meta content="test, test, test" name="keywords" />


I meant

<meta name="keywords" content="test, test, test" />

gets parsed into my HTML doc as

<meta content="test, test, test" name="keywords">

I hope that makes sense. The problem is that I am running some adds on
my

What are "adds"?
The tags are not reversed, in fact, there are not plural "tags"
in the data you've shown, there is only a single "tag".

Attributes can be in any order in XML, so

<gi x="X" y="Y">
and
<gi y="Y" x="X">

are *exactly equivalent* in XML.

i understand this now after many hours however it does not seem to be
particularly helpful to me as any raw HTML doc i put the tag on it works
fine. However when parsed and the attributes are reversed then they seem to
be ignored.

Applications that depend on the order of attributes do not
comply with the XML standard (ie. they contain a bug).
This one is way out of my hands!

Fix the bug in your "adds".

Ditto!
as I have been at this silly little thing for
hte last 7 hours now!!! :)

That can happen with bugs. :-)


I know! Tell me is it possible to send cocoon a html stream or string and
instruct it just to leave it alone? This would be a workaround as I can
never see the add publisher ever fixing their bug.

--
Tad McClellan SGML consulting
ta***@augustmail.com Perl programming
Fort Worth, Texas



I appreciate the reply.

Thanks.
brian.
--
get rid of the obvious if replying by mail
Jul 20 '05 #3
Brian wrote:
Hi,

I'm trying to use standard meta tags in an xsl doc and using cocoon
as my processor. The problem is that cocoon changes for example:

<meta name="keywords" content="test, test, test" />

to <meta content="test, test, test" name="keywords">

I hope that makes sense. The problem is that I am running some adds
on my site which don't understand the keywords when the tags are
reversed like this. Is there any way to get cocoon to just leave the
tags alone. Any help on this would be appreciated as I have been at
this silly little thing for hte last 7 hours now!!! :)

Brian.

I understand what you are saying.

This was reported to http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16093
but was dismissed.

You will have to, as Tad said, fix your "adds" to handle this behaviour.

Thanks
Jul 20 '05 #4
Brian <br***@theobviousdotnet.ie> wrote:

What "standard" are you referring to?
I just meant normal meta tags.

My point is that there *is no* "normal meta tags".

This is the XML newsgroup, XML does not define a <meta> element (!tag).

("normal meta tag" probably _would_ be precise enough in a newsgroup
about a markup language that defines a meta element (!tag),
such as comp.infosystems.www.authoring.html though.
)

If you want us to know what you mean when you say "meta tag"
then you should mention where/how/who defined the element, or
provide its definition or something.

You must excuse my ignorance I have been
dropped in at the deepend by a web designer that has gone AWOL!.

XML is a meta-language, it does not define _any_ elements.

XML (or SGML) is used to specify _other_ markup languages.

The w3c decided to define their language named "HTML" using SGML.
They decided to define their language named "XHTML" using XML.

Did you mean in outputs:

<meta content="test, test, test" name="keywords"></meta>
or
<meta content="test, test, test" name="keywords" />


I meant

<meta name="keywords" content="test, test, test" />

Then you are not working with HTML, as that is not valid there.

(are you sure you're not working with XHTML?)

gets parsed into my HTML doc as

But here you say you _are_ working with HTML.

If we don't know what language you need to speak, we cannot
help tell you what to say...

<meta content="test, test, test" name="keywords">

> I hope that makes sense.


It doesn't (yet), sorry.

The problem is that I am running some adds on
my


What are "adds"?


What are "adds"?

i understand this now after many hours however it does not seem to be
particularly helpful to me as any raw HTML doc i put the tag on it works
fine. However when parsed and the attributes are reversed then they seem to
be ignored.

The order of attributes does not matter in XML applications.

If the order of attributes matters in your application, then
it is not an XML application, and your posts are off-topic here.

Applications that depend on the order of attributes do not
comply with the XML standard (ie. they contain a bug).


This one is way out of my hands!

It is out of our hands too. Thread ends.

Fix the bug in your "adds".


Ditto!

Bummer. Looks like you are on an impossible mission then.

I know! Tell me is it possible to send cocoon a html stream or string and
instruct it just to leave it alone?

I do not know how to tell an XML processor to stop being
an XML processor.

If it did what you are asking for, then it would no longer
be an XML processor.
--
Tad McClellan SGML consulting
ta***@augustmail.com Perl programming
Fort Worth, Texas

You're not supposed to quote .sigs you know.
--
Tad McClellan SGML consulting
ta***@augustmail.com Perl programming
Fort Worth, Texas
Jul 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Cezary | last post by:
Hello. I was read PHP manual, but i'm not sure yet. Here is my meta tags in html: <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-2"> <META HTTP-EQUIV="Expires"...
1
by: Darren Blackley | last post by:
Hi there I have documents that I want to automatically add additional meta tags to. The documents already have some meta tags and I want to keep them all together, so I want to add my new meta tags...
19
by: Christian Hvid | last post by:
Hello groups. I have a series of applet computer games on my homepage: http://vredungmand.dk/games/erik-spillet/index.html http://vredungmand.dk/games/nohats/index.html...
24
by: Day Bird Loft | last post by:
Web Authoring | Meta-Tags The first thing to understand in regard to Meta Tags is the three most important tags placed in the head of your html documents. They are the title, description, and...
23
by: Fast Eddie | last post by:
What's the benefit to coding <meta name="author"...> and such? Thanks.
4
by: clintonG | last post by:
Anybody know how to dynamically write the meta tags using code so they are formatted on a separate line in the HTML source? Preferred or optimal framework classes that may be used in this regard? ...
16
by: Edward | last post by:
Hi All, I am having huge problems with a very simple dotnet framework web page (www.gbab.net/ztest3.aspx) , it does NOT render correctly under Apple's Safari. The DIV's do not align amd float as...
3
by: Jordan S. | last post by:
I'm looking to localize an ASP.NET Web application for English, Spanish, and French (fr-CA), and was just considering the possibility of localizing the meta tags (e.g., keywords, title, and...
4
by: King Coffee | last post by:
Hi, If I use master pages with META tags in the head section... can I still use META tag on the child pages (child pages reference the master page). I ask this question because I heard the more...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.