|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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!!! |
|
#2
|
||||
|
||||
|
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. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > What a good pratice to manage xml file? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|