XSL-FO اور XSLT
- ਪਿਛਲਾ ਪੰਨਾ XSLFO ਟੇਬਲ
- ਅਗਲਾ ਪੰਨਾ XSLFO ਆਬਜੈਕਟ
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 'ਤੇ ਤੁਸੀਂ ਸਾਰੇ ਵੈੱਬ-ਬਿਲਡਿੰਗ ਟੂਰੀਆਲਸ ਮਿਲ ਸਕਦੇ ਹੋ ਜ਼ਰੂਰਤ, ਮੁੱਢਲੇ HTML ਅਤੇ XHTML ਤੋਂ ਲੈ ਕੇ ਅਧੁਨਿਕ XML, XSL, ਮਲਟੀਮੀਡੀਆ ਤੱਕ ਅਤੇ WAP. </fo:block>
ਨਤੀਜਾ:

ਇਹ ਉਦਾਹਰਣ XSL-FO ਬਲਾਕ ਖੇਤਰ ਦੇ ਪ੍ਰਕਾਰ ਹੈ。
XSLT ਦੀ ਮਦਦ
XSL-FO ਸੂਚਨਾ ਹਟਾਓ ਵੱਲੋਂ:
<header> W3School </header> <paragraph> CodeW3C.com 'ਤੇ ਤੁਸੀਂ ਸਾਰੇ ਵੈੱਬ-ਬਿਲਡਿੰਗ ਟੂਰੀਆਲਸ ਮਿਲ ਸਕਦੇ ਹੋ ਜ਼ਰੂਰਤ, ਮੁੱਢਲੇ HTML ਅਤੇ XHTML ਤੋਂ ਲੈ ਕੇ ਅਧੁਨਿਕ XML, XSL, ਮਲਟੀਮੀਡੀਆ ਤੱਕ ਅਤੇ 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>
ਪ੍ਰਾਪਤ ਹਾਲਤ ਇੱਕ ਹੀ ਹੈ:

- ਪਿਛਲਾ ਪੰਨਾ XSLFO ਟੇਬਲ
- ਅਗਲਾ ਪੰਨਾ XSLFO ਆਬਜੈਕਟ