Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
| Search | Today's Posts | Mark Forums Read
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old October 21st, 2008, 12:27 AM
Registered User
 
Join Date: Sep 2008
Location: Delhi, Delhi, India.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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


shinyboy
  #2 (permalink)  
Old October 21st, 2008, 01:31 AM
Friend of Wrox
Points: 1,306, Level: 14
Points: 1,306, Level: 14 Points: 1,306, Level: 14 Points: 1,306, Level: 14
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2008
Location: Pondicherry, India
Posts: 291
Thanks: 9
Thanked 29 Times in 29 Posts
Default

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.

------
Rummy
  #3 (permalink)  
Old October 21st, 2008, 03:57 AM
mhkay's Avatar
Wrox Author
Points: 18,487, Level: 59
Points: 18,487, Level: 59 Points: 18,487, Level: 59 Points: 18,487, Level: 59
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2004
Location: Reading, Berks, United Kingdom.
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

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
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer's Reference


Similar Threads
Thread Thread Starter Forum Replies Last Post
Render HTML tags jacksprophet XSLT 1 December 28th, 2006 07:03 PM
Empty tags in resulting html? C.R. Chambers XSLT 6 July 22nd, 2005 03:59 PM
Generating html tags dynamically sachin lad Servlets 1 April 26th, 2005 05:35 PM
remove html tags lucian Dreamweaver (all versions) 1 November 14th, 2004 03:25 PM
Eliminating HTML TAGs beyondforsaken VB How-To 12 June 12th, 2003 08:00 AM





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