posted 18 years ago
Continuing with my question above:
While when i try XSLT to display XML data, i dont see the effect again of the line 1.
i.e "Fried" is getting printed but the font-size & line-height attribute are not having the formatting effect on the xml result.
____________________________________________________________________________
Demo.xsl
--------
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:output method="html" version="1.0" />
<xsl:template match="/">
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="only">
<fo:region-body />
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="only">
<fo:flow flow-name="xsl-region-body">
<fo:block font-size="100pt" line-height="50pt"> ----1
<xsl:value-of select="menu/lunch/rice"/>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
</xsl:stylesheet>
---------------------------------------------------------------------------
Demo.xml
--------
<?xml version="1.0"?>
<?xml:stylesheet href="Demo.xsl" type="text/xsl"?>
<menu>
<lunch>
<rice>Fried</rice>
<curry>Dal</curry>
</lunch>
<dinner>
<rice>Plain</rice>
<curry>Sambar</curry>
</dinner>
</menu>
___________________________________________________________________________
Thanks & regards,
Khateeb.