I'm new with Altova Stylevision 2015 and I need help in designing something like below and output to PDF format:
Source XML:
<catalog>
<book id="bk101">
<author>Gambardella <strong>Matthew</strong></author>
<title>XML Developer's Guide</title>
<genre>Computer</genre>
<price>44.<superscript>95</superscript></price>
<publish_date>2000-10-01</publish_date>
<description>An in-depth look at <strong>creating applications
with XML.</strong></description>
</book>
<book id="bk102">
<author>Ralls <strong>Kim</strong></author>
<title>Midnight Rain</title>
<genre>Fantasy</genre>
<price>5.<superscript>95</superscript></price>
<publish_date>2000-12-16</publish_date>
<description>A former architect battles corporate <strong>zombies,
an evil sorceress</strong>, and her own childhood to become queen
of the world.</description>
</book>
</catalog>
XSLT snippet (for HTML):
<xsl:template match="strong">
<b><xsl:apply-templates/></b>
</xsl:template>
<xsl:template match = "superscript">
<sup><font size="3"><xsl:apply-templates/></font></sup>
</xsl:template>
What I want is to dynamically format the 'strong' element to be 'bold' and 'superscript' to be 'superscripted'.
The XLS is working for HTML output but not for the PDF output. I really need the PDF output (in XSLT 2.0).
I tried dragging the 'author' element into the Design but the PDF does not display any text for the 'strong' and 'superscript' text, just blanks.
Much appreciate any help!
No comments:
Post a Comment