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">
CodeW3C.com వద్ద మీరు అన్ని వెబ్ బిల్డింగ్ ట్యూటోరియల్స్ ను కనుగొంటారు
అవసరం, బేసిక్ హెచ్టిఎమ్ఎల్ మరియు ఎక్స్ఎక్స్ హెచ్టిఎమ్ఎల్ నుండి అధునాతన ఎక్స్ఎమ్ఎల్, XSL, మల్టిమీడియా వరకు
మరియు వాప్.
</fo:block>

ఫలితం:

ఈ ఉదాహరణ ఎక్స్ఎల్ ఎఫ్ ఒ బ్లాక్ రీజన్ అంశం నుండి వచ్చింది.

XSLT నుండి సహాయం

డాక్యుమెంట్ నుండి XSL-FO సమాచారాన్ని తొలగించండి:

<header>
W3School
</header>
<paragraph>
CodeW3C.com వద్ద మీరు అన్ని వెబ్ బిల్డింగ్ ట్యూటోరియల్స్ ను కనుగొంటారు
అవసరం, బేసిక్ హెచ్టిఎమ్ఎల్ మరియు ఎక్స్ఎక్స్ హెచ్టిఎమ్ఎల్ నుండి అధునాతన ఎక్స్ఎమ్ఎల్, XSL, మల్టిమీడియా వరకు
మరియు వాప్.
</paragraph>

డబ్ల్యు ఎక్స్ఎల్ ట్రాన్స్ఫార్మ్ జోడించండి:

<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>

సమాన ఫలితం ఉంది: