473,386 Members | 1,823 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,386 software developers and data experts.

XHTML element selection?

How could I, in IE 5+, select a custom element/tag in an XHTML
document?

Let's say there's a <abc></abc> tag?

*\abc { declaration } ?

I don't know.
Jul 20 '05 #1
4 2039
Mark Johnson wrote:
How could I, in IE 5+, select a custom element/tag in an XHTML
document?

Let's say there's a <abc></abc> tag?

*\abc { declaration } ?

I don't know.


Take a look at this page:

http://w3future.com/weblog/gems/xhtml2.xml

It is actually coded in XHTML-2.0, with a whole load of workarounds to
get the unrecognized code to work. Dig around the source and the page
content to see how the author gets <nl>, <line>, <h> and <section> to work.

--
Mark.
Jul 20 '05 #2
Mark Tranchant <ma**@tranchant.plus.com> wrote:
Mark Johnson wrote:
How could I, in IE 5+, select a custom element/tag in an XHTML
document? Let's say there's a <abc></abc> tag? *\abc { declaration } ? I don't know.

Take a look at this page: http://w3future.com/weblog/gems/xhtml2.xml It is actually coded in XHTML-2.0, with a whole load of workarounds to
get the unrecognized code to work.


The doctype isn't necessary. It's just XML with a stylesheet. But I
don't want to post the files as XML, but as XHTML, with a htm or html
extension. And it doesn't appear that one can select an element which
isn't part of the language using a css which is loaded in. These are
differentiated at run-time, based on browser (actually a functional
test). So there's no telling which css gets loaded, beforehand.

The only alternative is to use span class="". I might just use a
regexp replace to change something like, <abc>, to <span class="abc">.

Or the alternative is to write new templates to take this generated
XML and create a XML substitute for the present HTML pages. But I like
the idea, for the moment, of using HTML that can run on most any
browser, new, old, or otherwise.
Might work.
Jul 20 '05 #3
Mark Johnson wrote:
How could I, in IE 5+, select a custom element/tag in an XHTML
document?

Let's say there's a <abc></abc> tag?

*\abc { declaration } ?

I don't know.


abc {declaration}

Just like you would with any other tag.

Berislav

--
If the Internet is a Marx Brothers movie, and Web, e-mail, and IRC are
Groucho, Chico, and Harpo, then Usenet is Zeppo.
Jul 20 '05 #4
"Berislav Lopac" <be************@dimedia.hr> wrote:
Mark Johnson wrote:
How could I, in IE 5+, select a custom element/tag in an XHTML
document?

Let's say there's a <abc></abc> tag?

*\abc { declaration } ?

I don't know.


abc {declaration}

Just like you would with any other tag.


Even if it's being stored, internally, which I doubt, these aren't
being made available to the css. I think the only way with this, other
than using a strict XML document, is to use a span and specify the tag
name as a class.
Jul 20 '05 #5

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

Similar topics

0
by: Peter Rohleder | last post by:
Hi, I have a few simple questions in order to use modularized xhtml and getting it to work. A simple example may make this obviouse: Lets say we want to create a simple xml-file to reflect...
1
by: Gordon - Adelphia | last post by:
I have a question regarding xhtml. Why, why, why does the ELEMENT <body> allow “unblocked” text. HTML does not (though, most browsers will render). Xhtml (transitional) however allows text nodes...
4
by: Binesh Bannerjee | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi. In another thread, Martin Honnen <mahotrash@yahoo.de> wrote: > XHTML is XML so there is no problem to use it inside of an XML document e.g. > ...
6
by: Wole Ogunremi | last post by:
I guess this is a well asked question but it is tripping me up! I'm putting a forum together allowing xhtml markup content. I am validating against a schema but getting "Could not find schema...
33
by: Mark Tranchant | last post by:
My site now uses Apache MultiViews and some PHP code to determine whether your browser can handle the application/xhtml+xml media type. If it does, the document is sent with that content type and...
2
by: Brian Idzik | last post by:
I've successfully setup a xhtml 1.0 strict page with Mozilla & Netscape to display links in a toolbar into an internal <div id='content'> within the same document. The toolbar uses some...
12
by: Alex D. | last post by:
How can I stop asp.net from rendering XHTML istead of HTML? My javascripts are rendering wrong because of that. It is rendering &amp; to clients instead of &. Any help? Thanks, Alejandro.
9
by: Udo Marx | last post by:
Greets to ciwah! I'm doing a little webproject for a local session event. Tryin' to meet latest standards i failed to do this: --snip-- <select name="fromcountry" accesskey="l" title="+">...
1
by: Darsin | last post by:
What i am doing is to pull the data from a CMS and import it to Word 2007 Beta and i also have to export the data from Word 2007 Beta back to that CMS. We have with us two Web Services of the CMS....
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.