Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > XSLT
Password Reminder
| FAQ | Members List | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #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

Reply With Quote
  #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

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.

Reply With Quote
  #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

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
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 01:04 AM.

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