SunQuest
           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 September 27th, 2002, 01:56 PM
MrHyde MrHyde is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Posts: 15 MrHyde User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
DTD Creation for medium size website

Hello,

The question I have is very general although I'm sure responses will be very lengthy.

I've been tasked w/ redeveloping my company's corporate website in xml. The main reason for this is we need to share data across 'product segments' of our website but do not have access to a DB.

I'm still in the beginning phase of the project but need to have my DTD's defined w/ in the next couple of weeks.

I'm stumpped w/ how I should approach this. Is it recommended to use multiple DTD's or is it better practice to create one master DTD and go from there?

Is there a 'standard' way to treat elements that can potentially contain many different formatting tags, i.e, hrefs, bolding, italics, images, etc. Or should the DTD explicitly define each possible html tag w/in the element?

Much of the data of the site is pretty much chunks of text but I'm having a hard time deciding what should be chucked out and what should be set explicty w/in elements.

I'm sure I've done a crappy job @ explaining what the heck I'm trying to do but if you have any suggestions that would be great. Also, any links to DTD's that _may_ shed some light on what I need to be looking at would be great.

Thank your for your time and please reply w/ any questions regarding this post.

Thanks.

Reply With Quote
  #2  
Old September 27th, 2002, 02:22 PM
Mobius Man's Avatar
Mobius Man Mobius Man is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 98 Mobius Man User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 39 m 15 sec
Reputation Power: 6
Hmm..well, if you want different formatting for links, images, text and such, you use XSL, not DTD. Extensible Stylesheet Language , aka XSL, formats XML in differnet manners, depending on what media you are using. Also, different XSL stylesheets can be employed if different 'product segments' needs to have the data look differnetly.

Also, take a look at schema, as you can use it to do your DTD work.

Reply With Quote
  #3  
Old September 27th, 2002, 07:17 PM
delta delta is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Posts: 65 delta User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 39 sec
Reputation Power: 6
Lightbulb

Hello MrHyde

I think you got a really good project which will give you plenty of learning opportunities.

Anyway The most difficult part of such projects is to design data structure. DTD is old fashioned way to define your xml structure, therefore I would also recommend you to make use schema (xsd: XML Schema Definition).
I don't know how much you know about xml, xsl, xsd and xpath but don't get confused.

best place to learn and see some examples about schemas is:

http://www.w3schools.com/schema/


I hope this will help you


/ delta

Reply With Quote
  #4  
Old September 27th, 2002, 11:15 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
One thing to keep in mind while you design your data structure: formatting doesn't belong in the data structure!

Rather than define a piece of text as *italics*, make it a *quote* or *reference* or even *emphasized* if you have to. Focus on *what* your data is, not how it's supposed to look. Then later on you can decide how each type (the what) of information should be displayed (bold/italics/etc).

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > DTD Creation for medium size website


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 5 hosted by Hostway