XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old August 26th, 2003, 08:47 AM
luinetti luinetti is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Tennessee
Posts: 13 luinetti User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Modularization ?

I'm a beginning student in XHTML (1.1) now, but I have significant experience in other, high-level programming languages, such as C and C++.

I would like to hear from PROGRAMMERS about the concept of modularization in XHTML 1.1 where a designer/programmer includes or excludes certain of the functional modules, based on the functionality of the program/product that is being developed.

Simply put, with C++ for example, you could obtain certain functionality for your program by linking to code libraries, but the addition of each one increased the size of your code.

Thinking, as I do, that these XHTML modules are nothing but DTD "references", what does it matter if a development author qualifies which modules of XHTML his product supports?

What is gained by editing a "standard" DTD in order to define the functionality that a given program or product supports, that is, if a hand-held widget did not make use of FRAMES functionality, what is the negative effect if the its referenced DTD includes the FRAMES module definition?

I really would appreciate any information that the programmers in this forum have about this issue.

Bill Luinetti

Reply With Quote
  #2  
Old August 26th, 2003, 06:25 PM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 8
Send a message via AIM to bricker42
Two reasons not to include extra modules:

1) It makes the DTD bigger. This is only an issue when you're validating the xhtml file, but it's still an issue.

2) Using your example of a hand-held widget that doesn't handle frames: If I write an xhtml page for said widget, and I validate it against your DTD for said widget, and your DTD says my <frame> tags are perfectly valid, then I damn well expect you said widget to render my frames!!! . If it doesn't, it's broken.

This kind of comes down the purpose of a DTD. If an application only supports some of the tags in a DTD, what good is the DTD? You still have to look in other documentation somewhere else to find out how the app is going to render your page. In that case, you might as well define your DTD to include everything, or better yet just leave it out entirely.

Reply With Quote
  #3  
Old August 26th, 2003, 06:54 PM
luinetti luinetti is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Tennessee
Posts: 13 luinetti User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Excellent!

Thanks, Bricker42;

Your response (2) was exactly what I needed...I had overlooked the obvious...the rest of the world would get an incorrect reading from me, if my hand-held widget DTD was just a plain, vanilla standard.

I thank you, sincerely, for your time.

Bill Luinetti

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > Modularization ?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway