Professional Documents
Culture Documents
whereas
XML
representation.
is
for
only
conten
DTD
Schema
supports
variety
of
dataTypes similar to programming In DTD everything is treated as
language.
empty elements
elements that contain only other elements
elements that contain only text
elements that contain both other elements and text
14.What is a Simple Element?
A simple element is an XML element that can contain only
text.
A simple element cannot have attributes
A simple element cannot contain other elements
A simple element cannot be empty
However, the text can be of many different types,
and may have various restrictions applied to it
15.What are namespaces? Why are they
important?
A simple element is an XML element that can contain only
text.
Namespaces are a simple and straightforward way to
distinguish names used in XML documents, no matter
where they come from.
XML namespaces are used for providing uniquely
named elements and attributes in an XML instance
They allow developers to qualify uniquely the
element names and relationships and make these names
recognizable, to avoid name collisions on elements that
have the same name but are defined in different
vocabularies.
They allow tags from multiple namespaces to be
mixed, which is essential if data is coming from multiple
sources.
Example: a bookstore may define the <TITLE> tag to
mean the title of a book, contained only within the
<BOOK> element. A directory of people, however, might
define <TITLE> to indicate a person's position, for
No navigation possible
bottom only once)
(top
to
the
docu
Figure 3: XSLT
32.What is the role of XSL transformer?
An XSL transformer will transform in the following way:
36.What is XQuery?
XQuery is a query and functional programming language
that is designed to query and transform collections of
structured and unstructured data, usually in the form of
XML, text and with vendor-specific extensions for other
data formats (JSON, binary, etc.).
37.What is XSL-FO?
XSL-FO deals with formatting XML data. This can be
used for generating output in a particular format like XML
to PDF, XML to DOC, etc.
38.How XSL-FO Works (or) How would you produce
PDF output using XSL's?
Figure 5: XSL-FO
Figure: - WSDL
6.What are the WSDL Document Elements?
A WSDL document is made up of the following elements:
definitions: The root element of a WSDL document.
The attributes of this element specify the name of the
WSDL document, the document's target namespace, and
the shorthand definitions for the namespaces referenced
in the WSDL document
types: The XML Schema definitions for the data units
that form the building blocks of the messages used by a
service.
message: The description of the messages
exchanged during invocation of a services operations.
These elements define the arguments of the operations
making up your service.
operation: An abstract description of the action
supported by the service.
portType: An abstract set of operations supported
by one or more endpoints.
06.
<soap:body use="literal" use="parameters"/>
07. </wsdl:input >
08. <wsdl:output >
09.
<soap:body use="literal" />
10. </wsdl:output >
11. </wsdl:operation >
12.</wsdl:binding >
The
"Style"
Attribute
WSDL 1.1 specifies the style of the binding as either RPC
or document. This choice corresponds to how the SOAP
payload - i.e., how the contents of the <soap:Body>
element - can be structured. Here are some details of
how each style affects the contents of <soap:Body>:
RPC/encoded
RPC/literal
document/encoded
document/literal
Some of these combinations are rarely used in practice,
such as document/encoded. In general, the literal use is
gaining importance, and as far as RPC/encoded is
concerned, the Web Services Interoperability Organization
(WS-I) in its Basic Profile Version 1.0a of August 2003
ruled out the use of SOAP encoding with web services.
Document/literal and RPC/literal will be the only allowed
style/use combinations in the future.