I'm assuming there's a way to do the following, but I'm having trouble
finding good information on it. If someone could point me to a good
webpage on it...
I want to take a Valid XHTML 1.0 page and add some elements to it.
Example: Let's say I want to add the elements "DATE" and "TEXT" to an
XHTML page as in the following:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>exampl e</title>
</head>
<body>
<table>
<tr>
<td><DATE>200 5-05-18</DATE></td>
<td><TEXT>Tes t Text 1</TEXT></td>
</tr>
<tr>
<td><DATE>200 5-05-19</DATE></td>
<td><TEXT>Tes t Text 2</TEXT></td>
</tr>
</table>
</body>
</html>
How would I do this? Is there a way to do it where it could still
validate as XHTML 1.0 Strict?
I tried adding [<!ELEMENT DATE (CDATA)> <!ELEMENT TEXT (CDATA)>] to the
DOCTYPE tag, but it created two problems:
1) It would at ]> at the top of my webpage.
2) I got errors when validating saying I couldn't add those elements in
those places (i.e. within <td> tags).
--
[ Sugapablo ]
[ http://www.sugapablo.net <--personal | http://www.sugapablo.com <--music ]
[ http://www.2ra.org <--political | http://www.subuse.net <--discuss ] 7 1796
In article <pa************ *************** *@REMOVEsugapab lo.com>,
Sugapablo <ru**@REMOVEsug apablo.com> wrote: I want to take a Valid XHTML 1.0 page and add some elements to it.
Example: Let's say I want to add the elements "DATE" and "TEXT" to an XHTML page as in the following:
.... Is there a way to do it where it could still validate as XHTML 1.0 Strict?
So basically you are asking if there is a way to take something that is
not XHTML 1.0 Strict and validate it as XHTML 1.0 Strict. What's the
point?
--
Henri Sivonen hs******@iki.fi http://hsivonen.iki.fi/
Mozilla Web Author FAQ: http://mozilla.org/docs/web-developer/faq.html
In article <pa************ *************** *@REMOVEsugapab lo.com>,
Sugapablo <ru**@REMOVEsug apablo.com> wrote: On Thu, 19 May 2005 17:29:44 +0300, Henri Sivonen wrote:
So basically you are asking if there is a way to take something that is not XHTML 1.0 Strict and validate it as XHTML 1.0 Strict. What's the point?
I was under the impression that this was the whole point of XHTML. To "permit the combination of existing and new feature sets when developing content". (http://www.w3.org/TR/xhtml1/#why)
Then you've got something in the "XHTML family" but not specifically 1.0
Strict.
--
Henri Sivonen hs******@iki.fi http://hsivonen.iki.fi/
Mozilla Web Author FAQ: http://mozilla.org/docs/web-developer/faq.html
Sugapablo wrote: I'm assuming there's a way to do the following, but I'm having trouble finding good information on it. If someone could point me to a good webpage on it...
I want to take a Valid XHTML 1.0 page and add some elements to it.
Example: Let's say I want to add the elements "DATE" and "TEXT" to an XHTML page as in the following:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>exampl e</title> </head> <body> <table> <tr> <td><DATE>200 5-05-18</DATE></td> <td><TEXT>Tes t Text 1</TEXT></td> </tr> <tr> <td><DATE>200 5-05-19</DATE></td> <td><TEXT>Tes t Text 2</TEXT></td> </tr> </table> </body> </html>
How would I do this? Is there a way to do it where it could still validate as XHTML 1.0 Strict?
I tried adding [<!ELEMENT DATE (CDATA)> <!ELEMENT TEXT (CDATA)>] to the DOCTYPE tag, but it created two problems:
1) It would at ]> at the top of my webpage. 2) I got errors when validating saying I couldn't add those elements in those places (i.e. within <td> tags).
The way to do this is to create new CLASSes, not new XHTML elements,
like so:
In your <head></head> section, add the following:
..date {
font-family: Arial, serif;
font-size: 1.0em;
color: red;
}
..text {
font-size: 1.0em;
}
In your <body></body> section, code like this:
<tr>
<td class="date">Th ursday, May 19, 2005</td>
<td class="text">Hi , how's it going, eh?</td>
</tr>
Sugapablo wrote: How would I do this? Is there a way to do it where it could still validate as XHTML 1.0 Strict?
No, once you change the document type to something else than XHTML, then
it is not XHTML ;-)
I tried adding [<!ELEMENT DATE (CDATA)> <!ELEMENT TEXT (CDATA)>] to the DOCTYPE tag, but it created two problems:
A nicer solution would be to put your additions into a different
namespace. A problem with that is then that DTD and DTD-based does not
know what namespaces are :(
What do you want to use your extensions for anyway? No common software
"out there" that is designed to operate with XHTML will understand your
extensions.
If you want to put some data into XHTML documents that you can't express
well enough in XHTML (for example, because you need to be able to find
your dates again, and XHTML has nothing to express dates), you could:
- be careful to keep all XHTML in the XHTML namespace
- be careful to keep all your extensions in your own namespace
- write documents where you mix the two together. They probably won't be
possible to validate with a DTD-based validator...
- write an XSLT transformation that translates your extensions into
XHTML. After transformation, any information that "this is a date" etc.
will be lost -- but you still have the original mixed document, and the
transform result is pure XHTML, and you can verify that it is by
validation. If some of your extension information should not be
presented as XHTML, your transform can just throw it out.
Soren
Sugapablo wrote: On Thu, 19 May 2005 17:29:44 +0300, Henri Sivonen wrote:
So basically you are asking if there is a way to take something that is not XHTML 1.0 Strict and validate it as XHTML 1.0 Strict. What's the point?
I was under the impression that this was the whole point of XHTML. To "permit the combination of existing and new feature sets when developing content". (http://www.w3.org/TR/xhtml1/#why)
Yes, you certainly can. But the result won't be XHTML 1.0. It'll be some
document type of your own making. You can validate it if you create a DTD
or Schema based on XHTML 1.0 and add your specified modifications. The
modular version of XHTML ( http://www.w3.org/TR/xhtml11/) lets you add and
subtract...but you'll still have to call the result "Russ's Modified XHTML"
or something like, because it won't be standard XHTML any more.
Lots of people do this with modular document types, of which the two biggest
and best known are DocBook and TEI. There's a whole section in the chapter
on DTDs in my book on SGML and XML Tools [1] which describes the process
using DocBook as an example, and the DTD for the XML FAQ is a small example
of this ( http://xml.silmaril.ie/faq.dtd).
///Peter
--
1. Flynn, P. Understanding SGML and XML Tools, Kluwer, Boston, 1998. ISBN:
0-7923-8169-6 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Mikko Ohtamaa |
last post by:
From XML specification:
The
representation of an empty element is either a start-tag immediately
followed by an end-tag, or an empty-element tag.
(This means that <foo></foo> is equal to <foo/>)
From XHTML specification:
|
by: Morten W. Petersen |
last post by:
Hi,
I'm developing a validation schema for a new thing called extensible
open xhtml outlines (XOXO) . I'd like to include inline XHTML
elements in these outlines, and do the least amount of work possible
to get it working. :)
I've done some work on the schema, are there ways easily include
inline elements in the li elements?
|
by: Sugapablo |
last post by:
I'm assuming there's a way to do the following, but I'm having trouble
finding good information on it. If someone could point me to a good
webpage on it...
I want to take a Valid XHTML 1.0 page and add some elements to it.
Example: Let's say I want to add the elements "DATE" and "TEXT" to an
XHTML page as in the following:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
by: Colin Cogle |
last post by:
-------
Line 47, column 8: there is no attribute "id"
<DIV id="LeftNavigation" style="position:absolute; left:8px; top:6px;
width:200p
-------
Line 47, column 31: there is no attribute "style"
<DIV id="LeftNavigation" style="position:absolute; left:8px; top:6px;
width:200p
-------
Line 47, column 127: element "DIV" undefined
|
by: seajays |
last post by:
I've got my page working just as I wanted it - but when I came to
validate the XHTML, using W3c's validator it failed. Essentially as
far as I can see it the problem is this:
1: <div>
2: <a href="somelink.htm">
3: <div>
4: <h2>Title</h2>
5: Some text
6: </div>
| |
by: August Karlstrom |
last post by:
Hi everyone,
In XHTML, can any empty element <foo></foobe replaced by <foo />?
Example:
<table>
<tr><td>1</td><td>2</td></tr>
<tr><td /><td>4</td></tr>
</table>
|
by: MORALBAROMETER |
last post by:
Hi all,
I want to update MULTIPLE elements of an HTML page using Ajax. for
this reason i my response is an xml document. I want to use XSL at the
client side to update these elements. How can i achieve this?
I will be very greatefull for any help.
Have a look below
=====================================================
Response from Server using HttpRequest Object
=====================================================
|
by: Simon Brooke |
last post by:
I have a document type which I'm developing and working with, which is
currently defined in a DTD, mainly because I still haven't really
learned to use schemas. In this document type I need to specify that
some specific elements may have children which are XHTML %Flow;
elements. It isn't valid for these elements to contain arbitrary
XHTML, and it isn't valid for other elements in my language to have
any XHTML children.
I presume I can't...
|
by: SMH |
last post by:
I am in the process of converting all HTML documents, including many
dynamic/interactive documents, to XHTML documents (because I want to
incorporate SVG and MathML, among other things).
I am having a problem converting
document.write()
statements which are not allowed in XHTML documents to statements which
create the DOM nodes/elements dynamically within script elements.
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |