Professional Documents
Culture Documents
2. What is XML?
XML
HTML
Markup language used to display data Markup language used to store data
5. Which tag is used to find the version of XML and the syntax?
Declaring the XML version is very important for each XML document and
platform needs to be specified in which it is running.
XML Document object represents the whole XML document, and it is the root
of a document tree. It gives access to entire XML document Nodes and
Elements, and it has its own properties.
7. What is XPath?
8. What is an attribute?
Example
1 <Person name=Peter>
Yes, we can have empty tags in XML. Empty tags are used to indicate
elements that have no textual content. Empty tags can be represented as
1 <person></person>
2
3 <person/>
An Attribute
text
CDATA is unparsed character data that cannot be parsed by the XML parser.
Character < and > are illegal in XML elements. CDATA section starts with <!
[CDATA[ and end with ]]>.
XML namespaces are used to avoid element name conflicts, and it can be
avoided by using prefix before the name.
XML Parser is used to convert from XML document into an XML DOM object
which can be written in Javascript.
XSL is a language used with XML for expressing style sheets as like CSS. It
describes how to display an XML document for a given type.
XML is a recommendation of the W3C World Wide Web Consortium and the
development are supervised by XML working group.
<, > and & are the special characters used in XML. Because these characters
are used for making tags.
25. What software is available for XML?
There are thousands of programs available for XML and updated list will be
present in http://xml.coverpages.org.
XLink:
1 <description
2
3 xlink:type="simple"
4
5 xlink:href="http://show.com/Cinema.gif"
6
7 xlink:show="new">
8
9 </description>
1
0 XPointer:
1
1 <description
1
2 xlink:type="simple"
1
3 xlink:href="http://show.com/Cinema.gif#Shownumber"
1
4 xlink:show="new">
1
5 </description>
1
6
1
7
1
8
1
9
2
0
2
1
1 <foo if{DB}="A">bar</foo>
1 <xsl:if test="@foo=bar">
2
3 <xsl:text>Hello, world!</xsl:text>
4
5 </xsl:if>
Self descriptive
XML will be just a text file if elements and attributes are not defined
properly.
If one or more elements are nested inside the root element is called nested
element. Nesting can be easy to understand and also keeps order in an XML
document.
XQuery was designed to query XML data which is nothing but SQL for
database tables. XQuery is used to fetch the data from the XML file.
XLink is the standard way of creating hyperlinks in the XML files. Xpointer
which allows those hyperlinks to point to more specific parts of the XML file
or document.
XML documents may contain Non-ASCII characters like French and Norwegian
characters. XML Encoding is used to avoid errors and XML files have to be
saved as Unicode.
When the XML file is validated against the Document Type Definition(DTD),
then it is called valid XML. DTD is nothing but it defines the structure of an
XML file.
A simple element contain only text and following are the kinds of Simple
Element:
No attributes
Doesnt contain other elements
It cannot be empty
40. What is Complex Element?
Yes, XML uses Document Type Definition (DTD) to describe the data.
1 <?xml version=1.0/>
44. If XML attribute name itself has double quotes, then how it can
be represented?
Attribute name can be represented within single quotes if double quotes are
present in the attribute name.
Example
Name itself implies Non-Validating will not validate the XML and
46. Whether root element is required for XML? If so, how many root
elements are required?
Yes, root element is required, and it can have only one root element in each
XML.
An XML Data island is XML data embedded into a HTML page. This works only
with the Internet.
Data Triggers
Data Triggers can be used
Perform initialization tasks
Allows to build dynamic query
Data Triggers Types
beforeReport trigger: Fires before the dataQuery is executed .
afterReport trigger : Fires after you exit and after XML output has
been generated
Example :-
<dataTrigger name="beforeReport" source="employee.beforeReport()"/>
<dataTrigger name="beforeReport"
source="employee.beforeReport(:Parameter)"/>
Ans> what you want to dispay the test anything write in last of page
=========================
4)Create Executeable
14)Include 'Text Form Field' Double CLick => Add Help Text button enter the
following
syntax
<?for-each:G_USER_ID?> : Here G_USER_ID is Group name from .rdf Data
Model
Note: It means Indirectley Repeating Frame starting
Include 'Text Form Field' Double CLick => Add Help Text button enter the
following
syntax
<?Column Name>?
19)Load the .xml file data and generate the Output in pdf Format
Data=>Load XMl Data=>Load the .xml File=>Once Data is Loaded
succesfully
After register the .rtf file submit concurrent Program from SRS window
system will
automatically pick the .rtf file and generates the Output.
<?import:file:/// D:\siva\Callsubtempalte\Subtemplatenew.rtf?>
Headers:
<?call@inlines:Tc1?><?with-param:ReportName;string(SIVA REPORT)?> <?
end call?>
Footers
<?call:Tc2?>
On the Report Editor you first need to define a parameter with name
DeptName. If this parameter has to be associated with a List of Value (LOV),
then create a LOV on the Report Editor page.
Next, in the parameter definition select parameter type as Menu and then
select the LOV from the selection.
Now when user selects a department name from the List of Value on the
report viewer page, the value gets passed to RTF layer into the DeptName
parameter. To display the layout based on this user selection, you can use an
IF statement or a CHOOSE statement to evaluate the parameter value and
call the associated sub template.
Use CHOOSE statement when too many conditional tests are to be done and
a default action is expected for rest of the values, for example, for each
department here we have a different sub template and if the user parameter
has a department name with no associated sub template, then a default sub
template can be called in otherwise section.
<?choose:?>
<?when:$DeptName=Accounting?><?call:tAcc?>
<?end when?>
<?when:$DeptName=Sales?><?call:tSales?>
<?end when?>
<?when:$DeptName=Marketing?><?call:tMark?>
<?end when?>
<?otherwise:?><?call:tDefault?>
<end otherwise>
<?end choose?>
5. WATERMARK
6. TEXT FIELD
<?add-page-total:pt;'TRANS_AMOUNT_REMAINING'?>
Cant generate xml data for CLOB more than 40 kb in report builder.
BLOB Images are supported in XML Publisher 5.6.2 or later.
Encode BLOB to CLOB use this following function:
<?template: header?>
<?end template?>
<?xdofx:sysdate()?>
<?xdofx:sysdate(dd-mon-yyyy)?>
<?xdofx:sysdate(dd-mm-yyyy)?>
<?xdofx:sysdate(day-dd-month-yyyy)?>
length <?xdofx:length(char)?>
Variables <?xdoxslt:set_variable($_XDOCTX,variable
name, 0)?>
IF Stament <?if:boolean_test?>
<?end if?>
<?if:LINE_TYPE=LINE ?>
<?end if?>
Images url:{IMAGE_LOCATION}
url:
{concat(SERVER,/,IMAGE_DIR,/,IMAGE_FIL
E)}
url:{concat(${OA_MEDIA},/,IMAGE_FILE)}
<?xdoxslt:set_variable($_XDOCTX, RTotVar,
0)?>
<?xdoxslt:set_variable($_XDOCTX, xml_tag,
xdoxslt:get_variable($_XDOCTX, RTotVar) +
xml_tag)?><?
xdoxslt:get_variable($_XDOCTX, RTotVar)?>
Regrouping by an Expression