기본 콘텐츠로 건너뛰기

라벨이 xml인 게시물 표시

AJAX Browser Support

AJAX Browser Support < script type = "text/javascript" > function ajaxFunction () { var  xmlhttp ; if  ( window . XMLHttpRequest )    {    // code for IE7+, Firefox, Chrome, Opera, Safari    xmlhttp = new  XMLHttpRequest ();    } else if  ( window . ActiveXObject )    {    // code for IE6, IE5    xmlhttp = new  ActiveXObject ( "Microsoft.XMLHTTP" );    } else    {    alert ( "Your browser does not support XMLHTTP!" );    } } </ script >

xsl을 사용하여 html tag를 그대로 브라우저로 출력하기

xml내용          <content>          <![CDATA[              <img src="../PIC10.gif" width="103" height="32" border="0" />의 값은? <img src="../PIC11.gif"/>ddd          ]]>          </content> xsl내용 <xsl:template  match = "content" >      <xsl:value-of  select = "."  disable-output-escaping = "yes" /> <br  /> </xsl:template> disable-out-escaping="yes" 를 사용하면 가능합니다. 출력결과 IE FF FF에서는 작동하지 않는군요...ㅜㅜ 왜 그럴까요?

xslt와 xsd가 적용된 exam

<? xml  version = "1.0"  encoding = "utf-8" ?>  <? xml-stylesheet  type = "text/xsl"  href = "/xsl/exam.xsl" ?> <exam xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation = "http://www.w3schools.com exam.xsd" >   <questions>       <question>           다음 중 옳은 것은?           <example>               1.           </example>           <example>               1.           </example>           <answer>        ...

element type을 따로 지정한 xsd

<? xml  version = "1.0" ?> <xs:schema  xmlns:xs = "http://www.w3.org/2001/XMLSchema" targetNamespace = "http://www.w3schools.com" xmlns = "http://www.w3schools.com" elementFormDefault = "qualified" > <xs:element  name = "exam" >    <xs:complexType>      <xs:sequence>        <xs:element  name = "questions"  type = "questionsType"  />      </xs:sequence>    </xs:complexType> </xs:element> <xs:complexType  name = "questionsType"  mixed = "true" >      <xs:sequence>          <xs:element  name = "question"  type = "questionType"  maxOccurs = "unbounded" />      </xs:sequence> </xs:complexType> <xs:complexType  name = "questionType"  mixed = "true" >    ...

XSD How To?

XSD How To? XML문서는 DTD나 XML스키마를 참조할 수 있다. exam.xml <?xml version="1.0"?> <exam> <questions>     <question>         다음 중 옳은 것은?         <example>             1.         </example>         <example>             1.         </example>         <answer>             1.         </answer>         <solution>             따라서...         </solution>  ...

XML스키마 소개

Introduction to XML Schema 1. XML Schema란? XML Schema는 XML 기반의 DTD대안이다. XML schema는 XML문서의 구조를 설명한다. XML Schema 언어는 XML Schema Definition (XSD)이라고도 불린다. 2.필요한 사전지식: HTML / XHTML XML and XML Namespaces DTD에 대한 기본적인 이해 3. An XML Schema: 문서에나타날수 있는 elements를 정의한다. 문서에나타날수 있는 attribute를 정의한다. 어떤 elements가 자식 elements인지 정의한다. 자식 elements의 순서를 정의한다. 자식 elements의 수를 정의한다. element가 비어있는지 또는 텍스트를 가질 수있는 지를 정의한다. elements와 attributes의 data type을 정의한다. elements와 attributes의 기본,정해진 값을 정의한다.