Active Learner -- Learning in my life!

Welcome To Forrest's Space! Welcome To Back!
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

一些XML测试的题目,有兴趣的看看。

Posted on 2006-06-22 19:18  Forrest.Gao  阅读(1348)  评论(0编辑  收藏  举报
 

1.         A validating parser is not required to :

A.Perform attribute defaulting

B.Dereference Namespaces.
C.Expand external entity references.

D.Validate datatypes.

E.validate CDATA sections

(A,E)

2.         Which of the following statements is TRUE for a well-formed XML document?

A. It must contain <!DOCTYPE ... !> statement.             false

B. There must be at least ONE root element that has NO attributes.          false

C. Each of the parsed entities referenced is well-formed.          false

D. The root element CANNOT belong to a namespace.             false

E. An attribute value cannot have reference to an entity.

 

3.         How should an XML developer store binary data which has been encoded (as base64) as the

content of an element "image" in an XML document?

A. <![CDATA[<image>...Binary data encoded as character data...</image> ]]>

B. <image> ...Binary data encoded as character data... </image>

C. <image> <![CDATA[...Binary data encoded as character data...]]> </image>

D. <image value="...Binary data encoded as character data..."/>

E. Binary data cannot be stored.

 

4.         The XML spec constrains the valid values for an ID attribute. Which of the following is FALSE?

A. ID attribute value cannot begin with and contain any whitespace.

B. ID attribute value cannot begin with a number.

C. ID attribute value cannot match the value of an existing IDREF attribute value.

D. ID attribute value has to be unique throughout the whole XML document.

 

5.         Which of the following would raise an error if the empID attribute’s datatype was defined as type ID in the DTD?

A. <name empID=”17563”> Joe Smith</name>

B. <name empID=”_17563”> Joe Smith</name>

C. <name empID=”a17563”> Joe Smith</name>

D. <name empID=”ft17563”> Joe Smith</name>

E. <name empID=””> Joe Smith</name>

(A,E) Numbers can not be IDs.

 

6.         Some advantages of the Namespace recommendation are that it:(Select 2) (AC)

A. It provides a locator for any tangible切实的 resources.

B. It permits applications to access a node by namespace.

C. It prevents naming collisions in merged vocabularies.

D. It is fully supported by DTDs. 肯定错

 

 

7.         What are the three main advantages of the Namespace recommendation?

A Provide a locator for any tangible resources

B Provide accessors to DOM nodes in merged vocabularies

C Prevent naming collisions in merged vocabularies

D Permit applications to access a node by namespace

E Affect the validation

F Allow validation for merged vocabularies

( ACF)

 

8.         What is meant by the term "namespace coercion" in the context of XML schema inclusions?

A.The targetNamespace of the included schema must be coerced into the including schema's

targetNamespace by manipulating the XML Schema DOM

B.If no targetNamespace is declared for the schema that is included ,the targetNamespace is

coerced into the including schema's namespace

C.The two schemas will collide in the targetNamespace

D.The including schema's targetNamespace willbe coerced into a default "empty"

targetNamespace,which both schemas will populate

E.The parser will be forced to discontinue parsing of the included schema ,unless coerced by the

setTargetNamespace() function from whthin the XML application

 

9.         How would a null value 空值非空元素for an element "person" be represented in an XML document? NOTE: Assume that the xsi, xsl, and xsd namespaces have been previously declared and properly defined.

A. <person/>

B. <person> <?xml value="null" ?> </person>

C. Add a nillable attribute to the element declaration in the XML Schema <xsd:element

name="person" type="xsd:string" nillable="true"/> And specify the following in an XML

document <person xsi:nil="true"/>

D. Add a nullable attribute to the element declaration in the XML Schema <xsd:element

name="person" type="xsd:string" nullable="true"/> And specify the following in an XML

document <person xsi:null="true"/>

E. A null value cannot be represented for an element.

 

10.     To capture whether a customer is active or inactive, which of these XML models is BEST?

A. <!ATTLIST Customer Active CDATA #REQUIRED>

B. <!ATTLIST Customer Active (1|0) “1”>

C. <!ATTLIST Customer ActiveStatus (yes|no) “yes”>

D. <!ATTLIST Customer Status (active|inactive) “active”>

(D)

 

11.     Refer to the exhibit to answer the question. Which of the following DTD constraints could satisfy a portion of the requirements?(Select 2)

A. <!ELEMENT product-code CDATA >

B. <!ELEMENT sales-trans (trans-id , line-item+ , trans-start)>

C. <!ATTLIST line-item item-number CDATA #REQUIRED quantity CDATA #REQUIRED >

D. <!ATTLIST trans-date mm-dd-yy DATE

E. </ELEMENT product-code>

B,C

 

12.     Refer to the exhibit to answer the question.

Which of the following DTD constraints could satisfy a portion of the requirements?

A. <!ELEMENT product-code CDATA>

B. <!ELEMENT sales-trans (trans-id, line-item+, trans-start)>

C. <!ATTLIST line-item item-number CDATA #REQUIRED quantity CDATA #REQUIRED>

D. <!ATTLIST trans-data mm-dd-yy DATE

E. </ELEMENT product-code>

(B,C)

 

13.     Given the following DTD, what is the BEST practice for modifying the conditional section?

<!-- product.dtd -->

<!ENTITY % useSuppliers "IGNORE" >

<!ENTITY % noSuppliers "INCLUDE" >

<![%useSuppliers; [<!ELEMENT CoInc (Product, Supplier*, Invoice*) >

<!ELEMENT Supplier (#PCDATA) >]]>

<![%noSuppliers;<!ELEMENT CoInc (Product, Invoice*) >]]>

<!ELEMENT Product (#PCDATA) >

<!ELEMENT Invoice (#PCDATA) >

A. Edit and update the parameter entities useSuppliers and noSuppliers in the DTD.

B. Redefine the parameter entities useSuppliers and noSuppliers in the internal subset of the

XML instance.

C. Update the parameter entities useSuppliers and noSuppliers within XSLT. 错误

D. Define appropriate business rules applied by the XML processor.

A参数实体只能在DTD下修改)

 

14.     An organization is currently migrating its application to XML. The document instances are created mostly from back-end processes; however, they also receive accounts-receivable and bill-of-lading data from two business partners. Which of the following factors support the use of XML Schemas instead of DTDs for validation?(Select 2) 最重要的一个是名字空间和数据类型

A. The vocabulary is proprietary.

B. The DTD is comprised of internal and external subsets dependent on instance usage.

C. Namespace support is being built into the application.

D. Strong datatyping is needed by the application.

(C,D)

 

15.     Which of the following should be considered when designing an XML schema?

A.Avoid the "default" attribute,as specific values indicate better analysis.

B.avoid the use of "any" in combination with namespace.

C.Ensure that elements and attributes have a non-empty value or are not present.

D.restrict field size.

E.Use "unique" for attributes values used as identifiers.

(B,C,E)

 

16.     The difference between XML Schema simple type and complex type is:

A. Only the predefined XML Schema types such as string and date are considered to be simple

types.

B. A simple type is used only for defining attributes.

C. A complex type is used only for defining elements.

D. A pattern facet can only be associated with simple types.

E. Only complex types can have attributes.

F. Only simple types can have attributes.

(A)

 

17.     Which of the following are TRUE about XML Schema datatypes?

A. A new type can be derived by extending multiple base types.

B. A new complex type’s content model includes the base type’s content model.对的

C. Derivation of a complex type by extension is much like inheritance in an O-O language. 错的

D. antyType is the default datatype for an element if no type is specified.

E. Datatypes that are derived by extension can add and remove attributes.

(BCD)

 

18.     .Which of the following statements regarding XML Schema derivation继承 is True?

A. XML Schema types that are derived by extension can only add attributes or append child

elements to the existing content model.

B. XML Schema types that are derived by restriction can only constrain the element and/or

attribute declarations of an existing type.

C. XML Schema types that are derived by extension cannot be further extended.

D. A complex type can be derived by either restriction or extension.

E. A simple type can be derived by restriction, list, or union.

 

 

19.     XML Schemas can be used to define which of the following?

A. New built-in simple data types

B. New data types with numeric range limitations

C. New data types limited to an enumerated set of values //新的枚举数据类型带一个数据范围的约束

D. New data types that must fit a particular format, such as a phone number

E. New data types automatically, based on actual values found in an XML document

(a,B?,C,D)

 

20.     Consider the following XML Schema:

 <xs:restriction base=”xs:string”>

 <xs:pattern value=”[A-B]{1}d{2}”/>

 </xs:restriction>

Which of the following tests could be removed without affecting coverage for INVALID values?

A. String values that end with “99”

B. Non-string values

C. String values that begin with lowercase letters

D. String values that begin with “BC”

E. String values that begin with “BB” and with “00” through “33”

(A)

 

21.     Refer to the exhibit to answer the question.

Which of the following XML Schema constraints could satisfy part of the requirements?

A. <xsd:element ref=”line-item” maxOccurs=”unbounded”>

B. <xsd:attributes name=”quantity” use=”required” type=”xsd:integer”/>

C. <xsd:attribute name=”quantity” type=”xsd:integer”/>

D. <xsd:attribute name=”trans-date”>

E. <xsd:element name=”line=item”/>

(A,B)

 

<xsd:complextType>

 <xsd:all>

 <xsd:element name="to" type="xsd:string" minOccurs="0" maxOccurs="1"/>

 <xsd:element name="cc" type="xsd:string" minOccurs="0" maxOccurs="1"/>

 <xsd:elemetn name="bcc" type="xsd:string minOccurs="0" maxOccurs="1"/>

</xsd:all>

</xsd:complextType>

Which of the following DTD content model closely mirrors the above XML Schema description

A.(to,cc,bcc)

B.(to?,cc?,bcc?)

C.(to*,cc*,bcc*)

D.(to+,cc+,bcc+)

E((to,((cc,bcc?)?|(bcc,cc?)?))|(cc,((to,bcc?)?|(bcc,to?)?))|(bcc,((to,cc?)?|(cc,to?)?)))

(E) sequence

 

22.     Consider the following XML instance document:

<GarmentSizes>3 3.5 4 4.5 5 6 7 8</GarmentSizes>

 <GarmentSizes>S M L</GarmentSizes>

 <GarmentSizes>7 8 9.5 10 L XL</GarmentSizes>

 What XML Schema type derivation for GarmentSizes will MOST correctly capture the above

requirement?

A. <xsd:simpleType name="garmentSizeType">

 <xsd:restriction base="xsd:string"/>

</xsd:simpleType>

B. <xsd:simpleType name="garmentSizeType">

 <xsd:list itemType="xsd:decimal"/>

 </xsd:simpleType>

C. <xsd:simpleType name="garmentSizeType">

 <xsd:list itemType="xsd:string"/> </xsd:simpleType>

D. <xsd:simpleType name="garmentSizeName">

 <xsd:restriction base="xsd:string">

<xsd:enumeration value="S"/>

<xsd:enumeration value="M"/>

<xsd:enumeration value="L"/>

<xsd:enumeration value="XL"/>

</xsd:restriction>

</xsd:simpleType>

<xsd:simpleType name="garmentSizeNames">

<xsd:list itemType="garmentSizeName"/>

</xsd:simpleType>

<xsd:simpleType name="garmentSizeNumbers">

<xsd:list itemType="xsd:decimal"/>

</xsd:simpleType>

<xsd:simpleType name="garmentSizeType">

<xsd:union memberTypes="garmentSizeNames garmentSizeNumbers"/>

</xsd:simpleType>

E. <xsd:simpleType name="garmentSizeType">

<xsd:restriction base="xsd:string">

<xsd:pattern value="[SMLX]"/></xsd:restriction>

</xsd:simpleType>

 

 

23.     Refer to the exhibit to answer the question. Every product in the catalog falls under a product

category. The product category will be cross-referenced in multiple places in the document. Which

of the following is a valid document fragment that satisfies this need?

A. <category idref="apparels">

...

</category><product>

 <type>T-Shirts</type>

 <categoryref id="apparels"/>

 ...

</product>

B. <category id="apparels">...</category>

<product>

 <type>T-Shirts</type>

<categoryref idref="apparels"/>

 ..

.</product>

C. <id category="apparels">...</category>

<product>

 <type>T-Shirts</type>

 <idref category="apparels"/>

 ...

</product>

D. <category idref="apparels">...</category>

<product>

<type>T-Shirts</type>

 <category id="apparels"/>

 ...

</product>

 

24.     Notations can be used to identify all of the following EXCEPT: C

A. The location of the images

B. The format of unparsed entities

C. The format of element attributes of the ENTITY and ENTITIES types

D. The application associated with a processing instruction (PI)

 

25.     Which of the following is the purpose of the XPointer specification?

A. XPointer integrates a variety of applications from library catalogs and world-wide directories

to syndication and aggregation of news, software, and content to personal collections of music,

photos, and events using XML as an interchange syntax.

B. XPointer specification defines a language to be used as a fragment identifier for any

URI-reference that locates a resource of Internet media type text/xml or application/xml.

C. XPointer specification proposes a syntax for providing the equivalent of HTML BASE

functionality generically in XML documents by defining an XML attribute named xml:base.

D. XPointer specification defines the XML Linking Language (XLink), which allows elements

to be inserted into XML documents in order to create and describe links between resources. It uses

XML syntax to create structures that can describe the simple unidirectional hyperlinks of today's

HTML, as well as more sophisticated links.

 

26.     Which of the following statements is FALSE regarding the Xlink specification?

A. Links one document to another.

B. Links many different resources together.

C. Allows only XML documents to be linked to each other.

D. Allows separation of the information away from the content, which allows the link to be easily

updated.

(C)

 

27.     consider the following XML fragment:

 

<item number="HG456">name of item</item>

 

Which of the following XML Schema fragments would cause NO validation error when the XML

document is validated

A.<xs:restriction base="xs:string">

 <xs:pattern value="\d{3}~[A-Z]{2}"/>

 </xs:restriction>

B. <xs:restriction base="xs:integer">

 <xs:pattern value="[a-z]{2}d{3}"/>

</xs:restriction>

 

C.

<xs:restriction base="xs:string">

 <xs:pattern value=[A-Z]{2}d{3}"/>

</xs:restriction>

 

D.

<xs:restriction base\"xs:string">

 <xs:pattern value="[A-Z]{4}d{2}"/>

</xs:restriction>

(C)

 

28.     14Consider the following XML Schema fragment:

<xsd:element name="Person">

 <xsd:complexType>

 <xsd:all>

 <xsd:element name="FirstName" ... />

 <xsd:element name="LastName" ... />

 ... </xsd:all>

 </xsd:complexType>

</xsd:element>

 

When utilizing the XML Schema "all" compositor within an element declaration, which of

the following statements are necessary pre-requisites?(Select 2)

 

A. The "all" compositor must be the first and only child of the complex type element, and it

cannot be combined with either "choice" or "sequence" compositor.

B. All of the elements declared within the compositor "all" should have minimum occurrence of

0 and maximum occurrence of 1.

C. All of the elements declared within the compositor "all" should be of complex type.

D. All of the elements declared within the compositor "all" should be of simple type.

E. The "all" compositor can only be defined on anonymous complex types.

 

29.     Which of the following CORRECTLY describes the two letter abbreviations for the Mid-Atlantic

states of the USA? NOTE: The Mid-Atlantic states are Maryland, North Carolina, Pennsylvania,

Virginia, and West Virginia. Their abbreviations are MD, NC, PA, VA, and WV, respectively.

A. <xsd:simpleType name="midAtlanticStates">

 <xsd:restriction base="xsd:string">

 <xsd:length value="2"/>

 <xsd:pattern value="[A-Z]{2}"/>

 </xsd:restriction></xsd:simpleType>

B. <xsd:simpleType name="midAtlanticStates">

 <xsd:restriction base="xsd:string">

<xsd:length value="2"/>

 </xsd:restriction>

</xsd:simpleType>

C. <xsd:simpleType name="midAtlanticStates">

<xsd:restriction base="xsd:string">

 <xsd:enumeration value="MD"/>

 <xsd:enumeration value="NC"/>

 <xsd:enumeration value="PA"/>

 <xsd:enumeration value="VA"/>

 <xsd:enumeration value="WV"/>

 </xsd:restriction>

</xsd:simpleType>

D. <xsd:simpleType name="midAtlanticStates">

 <xsd:restriction base="xsd:string">

 <xsd:min value="MD"/>

 <xsd:max value="WV"/>

 </xsd:restriction>

</xsd:simpleType>

E. <xsd:simpleType name="midAtlanticStates">

<xsd:restriction base="xsd:string">

 <xsd:enumeration list="MD NC PA VA WV"/>

 </xsd:restriction>

</xsd:simpleType>

 

 

30.     Which of the following techniques are correct for associating an XML Schema to an XML

document instance?(Select 3) (见大厚书7-367-93)

A. <test:Person xmlns:test=http://www.ibm.com/xml

xmlns:xsi=http://www.w3.org/2001/XMLSchema-Instance

xsi:schemaLocation="http://www.ibm.com/xml Person.xsd">

B. <Person xmlns:xsi="http://www.w3.org/2001/XMLSchema-Instance"

xsi:noNamespaceSchemaLocation="Person.xsd">

C. <Person xmlns:schemaLocation="Person.xsd">

D. <test:Person xmlns:test=http://www.ibm.com/xml

xmlns:xsi=http://www.w3.org/2001/XMLSchema-Instance

xsi:schemaLocation=http://www.ibm.com/xml Person.xsd xsi:type="USAuthor">

E. <!DOCTYPE Person SYSTEM "Person.xsd">

(A, B, D)

 

31.     When is it necessary to use xsd:import instead of xsd:include to combine two XML Schemas?

A. When the two XML Schemas are not on the local machine.

B. When two different teams write the two XML Schemas.

C. When the two XML Schemas belong to two different target namespaces.

D. When the two XML Schemas have nothing in common.

(C)两个名字空间相同用include,否则用import

 

32.     From the XPath specification, which of the following, if any, correctly defines the "following" axis?

A. All of the nodes of the following-sibling axis and the descendant axis

B. All of the nodes that are not a member of the preceding axis

C. All of the nodes that are after the context node, excluding any descendant, attribute, and

namespace nodes

D. There is no such axis.

 

33.     Which of the following are TRUE about the following XPath expression?

 <xsl: apply-templates select=”/x/y”>

A. In general, it is less reusable than a corresponding relative expression would be

B. It is equivalent to <xsl: apply-templates select=”/x/child:y”/>

C. It is equivalent to <xsd:apply-templates select=”/x/y[@z]/”>, if all “y”s have a “z” attribute

D. The same node-set would be returned by <xsl: apply-templates select=”//y”>

E. It can be used to select an element or an attribute

(A,B,C)

 

34.     From the XPath specification, which of the following axes, when combined together, reference all nodes in a document, expect the namespace and attribute nodes?

A. Self axis

B. Following-sibling axis

C. Descendant axis

D. Preceding-sibling axis

E. Ancestor axis

F. Preceding axis

G. Following axis

(A,C,E,F,G)

 

35.     Which of the following statements regarding XPath is TRUE?

A. XPath is new enough that the W3C has not yet adoped it as a “recommendation”

B. Using XPath, a developer can address portions of a DTD in a forward or backward direction.

C. XPath’s functionality is extended by XPointer.

D. XPath is implemented with an object-based language.

E. XPath uses XSLT, XSL FO, and other emerging technologies.

(C)

 

36.     Consider the following XML:

<temperature>

 -5

 </temperature>

 processed by this XPath expression:<xsl:value-of select="number(//temperature)"/>

Which of the following is TRUE?

A. NaN will be output, since the argument is a string.

B. NaN will be output, since a non-numeric character was found.

C. This element may not be found by the XPath expression.

D. The argument is converted to a floating point number.

 

37.     Given the document structure/exam/question/choices/choice,where choice is defined in the XML schema of having a minOccurs of 2 and a maxOccurs of unbounded and each choice has unique id value,which XML document expression would extract the id value of all questions with more than four choice?

A . /exam/question/choices/choice[5]/@id

B.//question[count(choices/choice)>4]@id

C.//choices/choice[5]/@id

D.//question[count(choices==>5)]/[@id]

E.//question[count(not(choices/choice))=4/@id

(B)

 

38.     Which of the following statements is NOT a capability of Cascading Style Sheets (CSS)?

A. CSS has a rule-based syntax that is non-XML.

B. CSS has some of the same styling capabilities offered by XSL-FO.

C. CSS supports right-to-left text. 错误

D. CSS can be used when the structure of the source document is very close to the final display

form.

(C)

 

39.     CSS and XSL can be BEST used together to:

A develop advanced transformations between XML DTDs.

B extend the capabilities of the HTML formatting model with CSS constructs.

C transform XML data on the server into HTML documents that link with CSS style sheets.

D allow XSL to directly process HTML documents.

(C)

 

40.     When both print and Web output are required from a single XML source file, it is usually BEST to:

A. use the same XSL stylesheet for both media.

B. use a CSS stylesheet for print output and an XSL stylesheet for Web output.

C. use XSL and CSS in combination to produce both web and print output.

D. write two style sheets and use xsl:include to include a common set of rules. 错的

 

41.     Expressions are used in XSLT for all the following purposes EXCEPT:

A.to select nodes for processing

B.to specify conditions for different ways of processing a node

c.to process <![CDATA[...]>section in the XML document instance

D.to generate text to inserted in the result tree

(C)

 

42.     The XSLT literal result element <table border="{@size}"/> can also be written as which of the following XSLT fragments?(Select 2)

A. <table>

 <xsl:attribute name="border">

 <xsl:value-of select="@size"/>

 </xsl:attribute></table>

B. <xsl:element name="table">

 <xsl:attribute name="border">

 <xsl:value-of select="@size"/>

 </xsl:attribute></xsl:element>

C. <table border="xsl:value-of select='@size'"/>

D. <table border="@size"/>

 <xsl:apply-templates select="table"/>

<xsl:apply-template select="@border"/>

<xsl:variable name="test">

 <xsl:apply-templates select="table/@border"/>

</xsl:variable>

<xsl:value-of select="$variable"/>

(A)

 

43.     The difference between an xsl:variable and xsl:param is that:

A. Only one has a required name attribute, which specifies the name of the variable.

B. The value specified on the xsl:param variable is only a default value for the binding and can

be specified at "process time".

C. The scope of the xsl:variable is limited to the entire style sheet.

D. xsl:param is used as a "global variable".

*******************************************************************************

44.     What XSL construct is BEST used when designing XSL style sheets that can be influenced at

process time”?

A. xsl: set-late-binding

B. xsl: apply-templates

C. xsl: processing-instruction

D. xsl: param

(D)

 

45.     Consider the following partial stylesheet:

<xsl:variable name=”x”/>

<xsl:template …>

 <xsl:variable name=”x”/>

which of the following is TRUE concerning the variable “x”?

??????A Use “../x” to refer to the global variable “x” and just “x” for the local variable

B the local variable “x” makes the global variable “x” unavailable from inside the template.

C the local variable “x” causes an error, due to the global variable “x”.

D it would be an error to declare a parameter “x” inside the template.

E Both “x” variables refer to the same instance.

(AB)

 

46.     Consider the following XSLT stylesheet fragment ??????

<xsl:template match=”*”>

 <tr>

 <td><xsl:number/></td>

 <xsl:apply-templates select=”author”/>

 <td><xsl:value-of select=”title”/>

 <xsl:call-template name=”hello”/>

</xsl:template>

The places where an XPath expression has NOT been used include:

A. xsl:template match attribute

B. xsl:apply-templates select attribute.

C. xsl:value-of select attribute.

D. xsl:call-template name attribute

(A,D)

 

47.     What mechanism would an XML developer use to write the output of an XSLT processor to multiple files? ??????

A. document("xml.doc")

B. save("xml.doc")

C. write("xml.doc")

D. output("xml.doc")

E. The developer will have to use an extension mechanism, since it is not supported by XSLT 1.0

 

48.     What XSLT function would an XML developer use to read an XML document and return its root node? ??????

A. import('xml.doc')

B. read('xml.doc')

C. parse('xml.doc')

D. document('xml.doc')

 

49.     Which of the following output type values can be used in the <xsl:output method="?"/> construct?(Select 3)

A. RTF

B. Text

C. XML

D. PDF

E. HTML

F. WML

G. SVG

 

50.     Which of the following XSL FO elements represent block level elements?(Select 3)

A. fo:block

B. fo:flow

C. fo:table ??????

D. fo:table-and-caption

E. fo:page-sequence

 

51.     .An HTML example of an fo:inline object would be : ??????

A. an <a> elements.

B. A <b> element.

C. A <span> element.

D.An <li>element

E. A< tr> element.

(A,B,C)

 

52.     When using XSLT, if expected items are missing in the output, what is the MOST likely cause?

A. The XPath expression in the select part of the <xsl:apply-templates> tab is not formed

properly.

B. The XSLT processor is not properly configured.

C. The XML parser is not passing the entire XSLT style sheet to the XSLT processor.

D. The wrong XSLT style sheet is being used.

 

53.     When output of an XSL Transformation must be targeted to a text-based file that generates an Electronic Data Interchange file, how is the line terminator(carriage return of linefeed combination) constrained?

A By using <xsl:output method=”text” mode=”text/edi” encoding=”iso-latin-1”/> in the XSL transformation

B By using <xsl:output method=”text” mode=”text/plain” encoding=”utf-8” indent=”no”/> in the XSL transformation

C By including <?xml encoding=”unix”?> in the XML document

D the terminator is dependent on the operating system

(A)

 

54.     What does the following XSL template resolve?

 <xsl:template match=”Name”>

 <xsl:apply-templates select=”*[@Prefix]” />

 </xsl:template>

A. Find the first child element of “Name” with a “Prefix” attribute.

B. Find the “Name” elements with “Prefix” attribute.

C. Find all the “Name” elements with a “Prefix” attribute.

D. Find all the child elements of “Name” with a “Prefix” attribute.

(D)

 

55.     Stylesheet A imports stylesheets B and C in that order, stylesheets B imports stylesheet D,

stylesheet C imports stylesheet E. The order of processing precedence from LOWEST to

HIGHEST would be:

E, D, C, B, A

D, B, E, C, A

A, C, E, B, D

C, E, B, D, A

A, B, C, D, E

(B)