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:
  #1  
Old April 5th, 2004, 10:46 AM
ericlim1119 ericlim1119 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 1 ericlim1119 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
What a good pratice to manage xml file?

I got confuse to manage the xml file.
To develop a simple web-site. Is that we need *.dtd and *.xsl for each page?Or we just need to save all the dtd n xsl in one file, which all xml file sharing it!!

Eg.

index.xml,indexDTD.dtd,indexXSL.xsl
page1.xml,page1DTD.dtd,page1XSL.xsl

OR

index.xml,page1.xml,allDTD.dtd,allXSL.xsl

Is that will too coplex if we choose the second. But if first one, when the web become bigger, it will become more files. So which one just the good pratice to manage the file?
Thank for replying!!!

Reply With Quote
  #2  
Old April 7th, 2004, 07:02 AM
MattSidesinger's Avatar
MattSidesinger MattSidesinger is offline
Java PHP Oracle Developer
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: C-Bus OH-IO
Posts: 204 MattSidesinger User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 m 26 sec
Reputation Power: 5
Send a message via AIM to MattSidesinger
I believe that you should do something like the following:

index.xml, index.dtd, index.xsl
page1.xml, page1.dtd, page1.xsl
common.dtd, common.xsl

Where all dtd may reference common.dtd and all xsl may reference common.xsl.

I believe that this will help you find an area of your application easier in the future, becuase the file names reflect the page right away. This is better than searching through a large file. You could also create folders to organization.

The common files will reduce redundancies accross the many files.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > What a good pratice to manage xml file?


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