XSL-FO এবং XSLT

XSL-FO এবং XSLT একে অপরকে সাহায্য করতে পারে

কি এই উদাহরণটি মনে আছে?

<fo:block
    font-size="14pt" font-family="verdana" color="red"
    space-before="5mm" space-after="5mm">
W3School
</fo:block>
<fo:block
    text-indent="5mm"
    font-family="verdana" font-size="12pt"
    space-before="5mm" space-after="5mm">
At CodeW3C.com you will find all the Web-building tutorials you
need, from basic HTML and XHTML to advanced XML, XSL, Multimedia
and WAP.
</fo:block>

ফলাফল:

এই উদাহরণ XSL-FO ব্লক অঞ্চল সম্পর্কিত সেকশন থেকে এসেছে。

XSLT থেকে সহায়তা

ডকুমেন্ট থেকে XSL-FO তথ্য সরিয়ে নিন:

<header>
W3School
</header>
<paragraph>
At CodeW3C.com you will find all the Web-building tutorials you
need, from basic HTML and XHTML to advanced XML, XSL, Multimedia
and WAP.
</paragraph>

XSLT ট্রান্সফরমেশন যোগ করুন:

<xsl:template match="header">
<fo:block
    font-size="14pt" font-family="verdana" color="red"
    space-before="5mm" space-after="5mm">
    <xsl:apply-templates/>
</fo:block>
</xsl:template>
<xsl:template match="paragraph">
<fo:block
    text-indent="5mm"
    font-family="verdana" font-size="12pt"
    space-before="5mm" space-after="5mm">
    <xsl:apply-templates/>
</fo:block>
</xsl:template>

ফলাফল একই হয়: