meta tags

B

Brian

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.
 
T

Tad McClellan

Brian said:
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. :)
 
B

Brian

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">


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!



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.





I appreciate the reply.

Thanks.
brian.
 
D

Disco

Brian said:
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
 
T

Tad McClellan

Brian said:
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.

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...



It doesn't (yet), sorry.

The problem is that I am running some adds on
my


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.

This one is way out of my hands!


It is out of our hands too. Thread ends.



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.




You're not supposed to quote .sigs you know.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,142
Messages
2,570,818
Members
47,362
Latest member
eitamoro

Latest Threads

Top