HTML ¹®¼­ ¼Ó¿¡ Á¦ÀÛÀÚ Å±׸¦ À§ÇÑ À̸§ÀÚ¸®(namespace)¸¦ ¼±¾ðÇÑ´Ù.

Àμö
: (¼Ó¼º ¹®ÀÚ¿­)
¼Ó¼º°ªÀº Á¦ÀÛÀÚ°¡ ¸¸µå´Â ű×ÀÇ ¾Õ¿¡ ³ª¿À°Å´Â À¯ÀÏÇÑ ÀνÄÀÚÀÇ ¹®ÀÚ¿­ÀÎ À̸§ÀÚ¸®(namespace)¸¦ ÁöÁ¤ÇÏ´Â ¹®ÀÚ¿­À̰ųª ÁÖ¼Ò(URN : Uniform Resource Name)ÀÇ ¹®ÀÚ¿­ÀÌ´Ù.

¾²±âÀÌ¸ç µðÆúÆ®°ªÀº ¾ø´Ù.

Ư±â

xmlnsÀÇ ¹®¹ýÀº (¿µ¹®)W3C XML Namespace Spec¿¡ µû¸¥´Ù.
W3C ±Ô°ÝÀº ¸ðµç ű׿¡ namespaceÀÇ ¼±¾ðÀ» Çã¿ëÇÏÁö¸¸ IE5¿¡¼­´Â HTML ű׿¡¼­¸¸ namespaceÀÇ ¼±¾ðÀ» Áö¿øÇÑ´Ù.

´ÙÀ½°ú °°ÀÌ HTML ű׿¡¼­ º¹¼ö À̸§ÀÚ¸®¸¦ ¼±¾ðÇÒ ¼ö ÀÖ´Ù.

<HTML xmlns:namespace1 xmlns:namespace2="www.microsoft.com">
Àû¿ë
°³Ã¼scriptHTML±Ô°ÝIE

Data BindingÀÌ ¼³Ä¡µÇ¾î Àִ°¡?
°á°ú Ç¥½Ãâ

¿¹Á¦´Â Explorer Dynamic HTML Data Binding ÄÞÆ÷³ÙÆ®°¡ ¼³Ä¡µÇ¾î ÀÖ´ÂÁö Á¡°ËÇÏ°í ¼³Ä¡µÇ¾î ÀÖÁö ¾ÊÀ¸¸é CLIENTCAPS ºñÇìÀ̹öÀÇ addComponentRequest¿Í doComponentRequest ¸Þ¼­µå¸¦ È£ÃâÇÏ¿© ¼³Ä¡ÇÑ´Ù.

IE¿¡¼­ ÇϳªÀÇ DefaultBehaviors clientCapsÀÌ HTML ¹®¼­¿¡¼­ Á¦ÀÛÀÚ Å±׷Π»ç¿ëµÉ ¶§ À̸§ÀÚ¸®¸¦ ¼±¾ðÇÏ´Â ¹æ¹ýÀ» º¸¿©ÁØ´Ù. ¿©±â¼­ À̸§ÀÚ¸®´Â MSIEÀÌ°í Á¦ÀÛÀÚ Å±׿¡¼­ DefaultBehavior À̸§ÀÇ Á¢µÎ¾î°¡ µÈ´Ù. clientCaps ºñÇìÀ̹ö´Â Explorer Dynamic HTML Data Binding ÄÞÆ÷³ÙÆ®°¡ »ç¿ëÀÚ ½Ã½ºÅÛ¿¡ ¼³Ä¡µÇ¾î ÀÖÁö ¾ÊÀ¸¸é ¼³Ä¡¿¡ »ç¿ëµÉ ¼ö ÀÖ´Ù.

<HTML xmlns:MSIE>
<HEAD>
<STYLE>
@media all{ MSIE:clientCaps{behavior:url(#default#clientcaps);}}
</STYLE>
<SCRIPT>
function window.onload(){
  clientCapsObj.style.behavior='url(#default#clientcaps)';
  var bindingAvail=false;
  var DBversion='';
  var DBid='{9381D8F2-0288-11D0-9501-00AA00B911A5}';
  bindingAvail=clientCapsObj.isComponentInstalled(DBid,'componentid');
  if (!bindingAvail){   // ¹ÙÀεùÀÌ ¾øÀ¸¸é ¼³Ä¡ÇÑ´Ù.
    clientCapsObj.addComponentRequest (DBid, 'componentid');
	 bindingAvail=clientCapsObj.doComponentRequest();
  }
  if (bindingAvail){
    DBversion=clientCapsObj.getComponentVersion(DBid,'componentid');
    if (DBversion!='') DBversion='version '+DBversion;
  }
  strTmp=(bindingAvail) ? 'ÀÖ´Ù.' : 'ÀÖÁö ¾Ê´Ù.';
  showA.innerHTML='<FONT size=4>Data Binding(<FONT color=blue>'+DBversion+'</FONT>)ÀÌ ¼³Ä¡µÇ¾î '+strTmp +'</FONT><BR>';
  showA.innerHTML+='clientCapsObj.scopeName='+clientCapsObj.scopeName;
}
</SCRIPT>
</HEAD>

<BODY>
<DIV>Data BindingÀÌ ¼³Ä¡µÇ¾î Àִ°¡?</DIV>
<MSIE:CLIENTCAPS id="clientCapsObj" />
<DIV id=showA>°á°ú Ç¥½Ãâ</DIV>
</BODY>