XMLT
- 10. <?xml version="1.0" ?> <!-- hello.xml --> <?xml:stylesheet type="text/xsl" href="hello.xsl"?> <myMessage> <message> Hello XSLT! </message> </myMessage> <html> <body> <h1> Hello XSLT! </h1> </body> </html> <?xml version="1.0" ?> <!-- hello.xsl --> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match=" myMessage "> <html><body> <h1> <xsl:value-of select="message"/> </h1> </body></html> </xsl:template> </xsl:stylesheet>
- 34. XSL-FO Production process XSLT to FO FO Impl. <mydoc> … <p> Hello </p> … </mydoc> Source XML Document <fo:root> … <fo:block> Hello </fo:block> … </fo:root> Generated FO Instance Hello 1 Rendered Pages