Select the answer that correctly describes a namespace to which the Name element in the XML document below belongs.
<data xmlns="urn:sample1">
<ContactInformation>
<Name master:type="Man" xmlns="" xmlns:master="urn:sample2">Taro_Yamada</Name> <eMail>Yamada@abc. co. jp</eMail>
<Tel>03-xxxx-xxx1</Tel>
</ContactInformation>
</data>
A. urn:sample2
B. urn:sample1
C. There is no namespace to which the Name element belongs. W Courier Newlr Z
D. master
正解:C
質問 2:
Press the Exhibit button to view the XML document "a. xml", and apply XSLT stylesheet "b. xsl" to "a. xml". Select which of the following correctly describes the transformation results. Assume that the input XML document and transformation results ignore meaningless whitespace.
A. <xsl:attribute name="state">Currently_Processing</xsl:attribute>
<xsl:element name="protocol">
<xsl:value-of select="service" />
</xsl:element>
B. <xsl:element name="protocol">
<xsl:attribute name="state">Currently_Processing</xsl:attribute>
<xsl:value-of select="service" />
</xsl:element>
C. <xsl:element name="protocol">
<xsl:value-of select="service" />
</xsl:element>
<xsl:attribute name="state">Currently_Processing</xsl:attribute>W Courier Newlr Z
D. <xsl:element name="protocol">
<xsl:value-of select="service" />
<xsl:attribute name="state">Currently_Processing</xsl:attribute>
</xsl:element>
正解:B
質問 3:
Select which XML documents are valid with respect to the following DTD.
<?xml version="1. 0"?>
<!DOCTYPE contact [
<!ELEMENT contact (TEL*|FAX*)>
<!ELEMENT TEL (#PCDATA)>
<!ELEMENT FAX (#PCDATA)>
]>
A. <contact>
<TEL>00-979-99999</TEL>
<TEL>00-979-99998</TEL>
<FAX>00-979-99997</FAX>
</contact>
B. <contact>
<TEL>00-979-99999</TEL>
<FAX>00-979-99998</FAX>
</contact>
C. <contact>
<TEL>00-979-99999</TEL>
<TEL>00-979-99998</TEL>
</contact>
D. <contact/>W Courier Newlr Z
正解:C,D
質問 4:
Select which statement correctly describes the XML document below.
<!DOCTYPE document [
<!ELEMENT document (chapter+)>
<!ELEMENT chapter (#PCDATA)>
]>
<document>
<?WordProc Chap="A:1"?>
<chapter>Chapter 1</chapter>
</document>
A. The ":" (colon) cannot be included in the processing instruction.
B. The presence of a processing instruction has no effect on verifying validity.
C. This is not a valid document, because the appearance of a processing instruction is not coded in the DTD .
D. The processing instruction cannot be included in the element content. W Courier Newlr Z
正解:B
質問 5:
Press the Exhibit button to view the XML Schema document defining "Structure". Select which of the following is correct with respect to "Structure" defined by the XML Schema document.
A. <?xml version="1. 0"?>
<xs:schema xmlns:xs="http://www. w3. org/2001/XMLSchema">
<xs:element name="Book" type="book_type"/>
<xs:complexType name="book_type">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="Publication_Date" type="xs:string" use="optional" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:schema>
B. <?xml version="1. 0"?>
<xs:schema xmlns:xs="http://www. w3. org/2001/XMLSchema">
<xs:element name="Book" type="xs:string">
<xs:complexType>
<xs:attribute name="Publication_Date" type="xs:string" use="optional" />
</xs:complexType>
</xs:element>
</xs:schema>
C. <?xml version="1. 0"?>
<xs:schema xmlns:xs="http://www. w3. org/2001/XMLSchema">
<xs:element name="Book" type="book_type">
<xs:complexType name="book_type">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="Publication_Date" type="xs:string" use="optional" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:schema>
D. <?xml version="1. 0"?>
<xs:schema xmlns:xs="http://www. w3. org/2001/XMLSchema">
<xs:element name="Book" type="book_type"/>
<xs:complexType name="book_type">
<xs:attribute name="Publication_Date" type="xs:string" use="optional" />
</xs:complexType>
</xs:schema>W Courier Newlr Z
正解:A
質問 6:
Select which of the following is an incorrect attribute value for "Product ID" when the "Product ID" attribute is defined by the XML Schema below. Assume the Schema namespace prefix is "xs". <xs:attribute name="Product_ID" type="xs:ID"/>
A. Product_ID="245"
B. Product_ID="ABCDEF"W Courier Newlr Z
C. Product_ID="F03"
D. Product_ID="k012345678901234567890123456789"
正解:A
白石** -
なぜだかすごくわかりやすかった。I10-001試験にも合格いたしました!XML Masterさん、今後もお世話になります。