Dab tsi yog qhov txawv ntawm internal DTD thiab sab nraud DTD?
Dab tsi yog qhov txawv ntawm internal DTD thiab sab nraud DTD?

Video: Dab tsi yog qhov txawv ntawm internal DTD thiab sab nraud DTD?

Video: Dab tsi yog qhov txawv ntawm internal DTD thiab sab nraud DTD?
Video: Qhov Kev Sib Txheeb Ntawm Vajtswv thiab phau Vajluskub Yog Dab Tsi? 2024, Kaum ib hlis
Anonim

1 Teb. DTD cov lus tshaj tawm thiab sab hauv XML ntaub ntawv los yog ua External DTD cov ntaub ntawv, tom qab txuas mus rau ib daim ntawv XML. Internal DTD : Koj tuaj yeem sau cov cai hauv daim ntawv XML siv cov lus tshaj tawm. Sab nraud DTD : Koj tuaj yeem sau cov cai hauv cov ntaub ntawv cais (nrog.

Ua li no, qhov sib txawv ntawm sab hauv thiab sab nraud DTD yog dab tsi?

Lub xwb qhov sib txawv ntawm sab hauv thiab sab nraud yog nyob rau hauv txoj kev nws tau tshaj tawm nrog DOCTYPE. Vam tias qhov no yuav pab tau koj !!! Internal DTD : Koj tuaj yeem sau cov cai hauv daim ntawv XML siv cov lus tshaj tawm. Sab nraud DTD : Koj tuaj yeem sau cov cai hauv cov ntaub ntawv cais (nrog.

Qhov thib ob, sab nraud DTD yog dab tsi? Ib External DTD yog ib qho uas nyob hauv ib daim ntawv cais. Yuav siv lub External DTD , koj yuav tsum txuas mus rau nws los ntawm koj cov ntaub ntawv XML los ntawm kev muab URI ntawm cov DTD ntaub ntawv. URL tuaj yeem taw tes rau cov ntaub ntawv hauv zos uas siv cov txheeb ze siv, lossis ib qho chaw taws teeb (xws li, siv HTTP) siv qhov kev siv tiag.

Tsis tas li, DTD sab hauv thiab sab nraud DTD yog dab tsi?

A DTD yog hu ua ib internal DTD yog tias cov ntsiab lus tau tshaj tawm hauv cov ntaub ntawv XML. Siv nws li internal DTD , standalone attribute nyob rau hauv XML tshaj tawm yuav tsum tau teem rau yog. Qhov no txhais tau tias cov lus tshaj tawm ua haujlwm ywj siab ntawm sab nraud qhov chaw.

Ob hom DTD yog dab tsi?

Feem ntau, muaj ob hom: sab hauv thiab sab nraud. Internal (parsed) cov koom haum tau koom nrog lub npe nrog cov ntsiab lus tsis txaus ntseeg uas tau teev tseg hauv lawv tshaj tawm (uas tej zaum yuav yog nyob rau hauv lub subset los yog nyob rau hauv lub sab nraud subset ntawm lub DTD tshaj tawm nyob rau hauv daim ntawv).

Pom zoo: