p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   XSLT (http://p2p.wrox.com/forumdisplay.php?f=86)
-   -   HTML tags issue.. (http://p2p.wrox.com/showthread.php?t=71107)

atulshin October 21st, 2008 12:27 AM

HTML tags issue..
Hi All,

Posting a new issue.

 In my XSL file I am using output method = 'XML' in order to generate PDF like
    <xsl:output method="xml" version="1.0" indent="yes" encoding="UTF-8"/> .

 Now if I use XML outout method the HTML tags are not rendered by XSLT parser. They appear as it in the output PDF.

I can't use HTML method as the XSLT parser is unable to generate FO in that case.

Any suggestions ?

Thanks in advance


mrame October 21st, 2008 01:31 AM

As Mike has already said, there may not be FO experts in this forum.

When you are getting the output in xml, all elements belong to that xml file only. The tags may be same as html tags, but they are not actually html tags.

You should write seperate templates for all those elements, for which rendering is needed.


mhkay October 21st, 2008 03:57 AM

I'm confused, and I think that's because you are confused.

If you are trying to generate PDF via XSL-FO, then where does HTML come into it? XSL-FO and HTML are completely different vocabularies. If you are generating XSL-FO, your stylesheet should not be generating any HTML elements.

Michael Kay
Author, XSLT 2.0 and XPath 2.0 Programmer's Reference

All times are GMT -4. The time now is 06:31 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.