Structure of generated XML Documents
 

Index

Introduction
Differences
Installation I
Installation II
Installation III
Uninstall

Working with SMWP

Parameter
Fragement Class
Page Class
XML Document (Page)



4.16 Structure of generated XML Documents

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?xml version="1.0" encoding="UTF-8" standalone="no">
<pc:pc_elementName
  xmlns:pc="pc_namespace"
  xmlns:smwp="http://dke.uni-linz.ac.at/smwp/1.0"
  smwp:pageClass="pc_name"
  smwp:foundationFragmentClass="ffc_longName"
{ smwp:params="pc_paramName"
  pc_paramName="pc_paramValue" }
>
{ <fc_elementName
   xmlns="fc_namespace"
   xmlns:smwp="http://dke.uni-linz.ac.at/smwp/1.0"
   smwp:fragmentClass="fc_longName"
 { smwp:params="fc_paramName"
   fc_paramName="fc_paramValue" }
>
{ <fc_tupleName smwp:id="rowid">
{ <fc_columnName>fc_columnValue</fc_columnName> }
</fc_tupleName> }
</fc_elementName> }
<pc:pc_elementName>

Table 5: Structure of generated XML documents

CREATE/ALTER ... FRAGMENT CLASS className ...
"TO PUBLISH FRAGMENT AS" qName*1
"AND TUPLE AS NAME" qName*2
"IN NAMESPACE [" nsURI*3 "]"


*1 matches fc_elementName
*2 matches fc_tupleName
*3 matches fc_namespace

4.17 Display generated XML Document

In order to display the generated XML documents start the Apache Tomcat web server and use following Hyperlink to access the table of contents for generated XML documents:

http://[hostname]:8080/tomcat/smwp/smwp_systemid

The table of contents displays an overview of all generated XML documents showing a unique system id for every document and the page class it is derived from. An XML document corresponds to a page of an given page class. Pages are defined by a set of parameters and their value which is denoted as well.


Figure 15: Table of contents for all generated XML documents

Following an hyperlink for a page (XML document) displays it using a generic XSL Stylesheet for its HTML representation. The page representation for every document uses the same structure. The top of the page displays the name of the page class, its foundation fragment class ans its parameter values. Below the page class information all mapped fragment classes are being displayed except for those without publication specification. The fragment class displays its parameter and parameter values followed by all tuples of the actual fragment.


Figure 16: HTML-representation of a page

Returning to the table of contents works by using the back button from the internet browser. The XML document itself looks the following way:


Figure 17: XML-document of a page

Zu dieser Darstellung gelangt man mittels folgenden alternativen Links:

http://[hostname]:[port]/DB_Wrapper/show_content?systemID=[systemID]
http://[hostname]:[port]/DB_Wrapper/show_content?id=[id]