473,406 Members | 2,713 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,406 software developers and data experts.

extend existing dtd

Hi guys,

I am fairly new to XML, so please forgive me if this questions is really
simple:

is there a possibility to extend existing DTDs? I would like to base my XML
DTD on the existing http://www.w3.org/TR/html4/loose.dtd, but I want to add
a few more elements. Is that possible to do and if so, what would be the
easiest way to do it? I mean, without cutting and pasting the entire W3 DTD
into my own file?

Thanks heaps!
Jul 20 '05 #1
2 1364
Andreas wrote:
Hi guys,

I am fairly new to XML, so please forgive me if this questions is really
simple:

is there a possibility to extend existing DTDs? I would like to base my XML
DTD on the existing http://www.w3.org/TR/html4/loose.dtd, but I want to add
a few more elements. Is that possible to do and if so, what would be the
easiest way to do it? I mean, without cutting and pasting the entire W3 DTD
into my own file?


Internal subsets might work for you ?

<!DOCTYPE foo PUBLIC "..." "..." [
<!ElEMENT my_first_new_element....>
...
]>

<foo>
....
</foo>

But you have to include that into every XML document then,

I think there is no other solution.

Soren

Jul 20 '05 #2
Andreas wrote:
Hi guys,

I am fairly new to XML, so please forgive me if this questions is really
simple:

is there a possibility to extend existing DTDs? I would like to base my XML DTD on the existing http://www.w3.org/TR/html4/loose.dtd, but I want to add a few more elements. Is that possible to do and if so, what would be the
easiest way to do it? I mean, without cutting and pasting the entire W3 DTD into my own file?

Internal subsets might work for you ?

<!DOCTYPE foo PUBLIC "..." "..." [
<!ElEMENT my_first_new_element....>
...
]>

<foo>
....
</foo>

But you have to include that into every XML document then,

OR look in the thread below, "why does a browser...". Maybe you can
include two external entities?

Soren
Jul 20 '05 #3

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

Similar topics

1
by: Animanera | last post by:
Is there a way to extend an existing DTD (adding only new elements) OR I've to create a NEW DTD containing both new and old elements? Thank you very much in advance. Bye, Animanera. :)
10
by: Jerzy Karczmarczuk | last post by:
Gurus, before I am tempted to signal this as a bug, perhaps you might convince me that it should be so. If I type l=range(4) l.extend() l gives , what else... On the other hand, try
2
by: Boobie | last post by:
I switched to using this function to create element: ---------------------------------------------------- function elem(name, attrs, style, text) { var e = document.createElement(name); if...
0
by: Bernard Dhooghe | last post by:
Suppose a set of programs written in ESQL (C or Cobol) or 4GL, accessing an Informix database. Suppose the Informix' customer owning the souces is willing to see how DB2 could help him, so a DB2...
2
by: centrino | last post by:
hi, I want to extend System.Net.Sockets.ProtocolType to IPinIP protocol, how can i do that. Do i have to make new class or enum stuct for this type ? regards
6
by: jk | last post by:
Looking through WebUIValidation.js, I discovered that the standard validators don't cater for non-numeric date formats (e.g. dd-MMM-yyyy) which I would like to do To keep code to a minimum, I...
3
by: jacobstr | last post by:
I've noticed Object.extend used in a few different ways and I'm having trouble distinguishing why certain usages apply to a given situation. On line 804 Ajax.Base is defined as follows: ...
1
by: Jeremy S. | last post by:
I'm implementing logging via the TraceSource class and related TraceSwitch and TraceListeners classes. The TextWriterTraceListener does much of what I need. But it does not roll the log over at...
6
by: Ioannis Papadopoulos | last post by:
I would like to extend the functionality of all streams in C++ so I can do some fancy stuff like redirecting the streams on the fly. I don't want to reimplement the whole stream support in C++...
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
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
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...
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
agi2029
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.