Title: Porting of content from Word to XML
1Porting of content from Word to XML
- 1. Create a source document with styles (Supprem
has a pre-defined set of styles) - 2. Presentation of the pre-defined styles of
SUPPREM - 3. Transformation of the source document into XML
using transforming software -UpCast in our
case- - 4. Resulting XML from the pre-defined styles
- 5. Examples of use of XML extraction
- 6. Transformation of the source document into
XHTML (HTML that conforms to XML rules well
formed and valid) using transforming software
-UpCast in our case- - 7. Resulting HTML from the source document
-
21. Create a source document with styles before
This is the content in unformatted rtf document
31. Create a source document with styles after
This is the content after applying the set of
styles
41. Create a source document with styles how
You apply a style to a paragraph or portion of
your document by highlighting it and selecting
the style from the drop-down menu
51. Create a source document with styles Some
styles for nice visual effect
61. Create a source document with styles Some
styles for XML extraction
Exemple for the citation
72. Presentation of the pre-defined styles of
SUPPREM Current list of styles in Word
Paragraph for one paragraph can hold many
character styles Character for a word or
inline Why use paragraph or character the case
of a citation
82. Presentation of the pre-defined styles of
SUPPREMin Word An example for quiz feedback
In this example, we identify the portion of the
text that will be used as feedback for a
test. Because it is identified a
feedback_good-quiz1 , we will be able to link
directly to it. Here the character style is used
to give a name to the feedback portion
93. Transformation of the source document into XML
using transforming software How
This is the control panel of UpCast. We have
chosen a transformation into XML Content -the
styles are mapped directly in XML without visual
interpretation-
104. Resulting XML from the pre-defined styles
Here we can see the paragraph has been translated
into a XML element
115. Examples of use of XML extraction Quiz
feedback
The student answers this test. In the parameters
of the test, we defined a URL link to go back to
the textbook on the Web, that will appear if the
student answers correctly.
The link refers to the main Web page with the
name of an anchor shareholders
125. Examples of use of XML extraction Quiz
feedback
A pop-up window opens up after clicking
135. Examples of use of XML extraction Glossary
terms and definition in the source document
145. Examples of use of XML extraction Glossary
terms and definition after transformation
We can see the 2 glossary items represented in XML
155. Examples of use of XML extraction Glossary
terms and definition List
An XML file can be manipulated by XSLT to produce
a specific HTML file. We have used XSLT to
produce this list of glossary terms.
XSLT eXstensible Stylesheet Language-Transformat
ion. It is a style sheet that will select
specific XML elements and compose a new document
166. Transformation of the source document into
XHTML using transforming software
This is the control panel of UpCast. We now have
chosen a transformation into XHTML Visual
-the styles are mapped in XHTML with visual
interpretation (a CSS style sheet is associated
to render the visual aspect)
177. Resulting HTML from the source document
18Other possible applications with XML
- Dynamically feed content to interactive quizzes
- Automatically insert glossary items or URLs into
a database - Extract the table of content of textbooks, list
of tables or figures, index, etc.