471,337 Members | 950 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 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 3573
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Cezary | last post: by
1 post views Thread by Darren Blackley | last post: by
19 posts views Thread by Christian Hvid | last post: by
24 posts views Thread by Day Bird Loft | last post: by
23 posts views Thread by Fast Eddie | last post: by
4 posts views Thread by clintonG | last post: by
16 posts views Thread by Edward | last post: by
3 posts views Thread by Jordan S. | last post: by
4 posts views Thread by King Coffee | last post: by
reply views Thread by rosydwin | last post: by

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.