Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
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
 
Old November 28th, 2009, 12:30 AM
Authorized User
 
Join Date: Nov 2009
Posts: 10
Thanks: 1
Thanked 1 Time in 1 Post
Default XML to HTML for various DTD's

HI all,

I need to convert some different XML files(i.e various DTD's) to HTML. Is there any option in XSLT to run according to the selection of DTD. Please give your valuable suggestions.


Regards
Bala
 
Old November 28th, 2009, 07:12 AM
Friend of Wrox
 
Join Date: Nov 2007
Posts: 1,243
Thanks: 0
Thanked 245 Times in 244 Posts
Default

I am not sure I understand what you have in mind exactly but XSLT processing is not based on DTDs. You write match patterns selecting nodes by their type (e.g. element node or attribute node) and by their node name. The XSLT/XPath data model does not include any DTD related nodes.
Writing a single stylesheet to process different types of XML documents would be possible by including templates matching the different elements, that way the XSLT processor would then simply choose a different template based on matching against the different elements encountered in the input XML.
__________________
Martin Honnen
Microsoft MVP (XML, Data Platform Development) 2005/04 - 2013/03
My blog





Similar Threads
Thread Thread Starter Forum Replies Last Post
Regarding xml-html transformation of an xml string using xslt and javascript suprakash444 XSLT 1 January 12th, 2009 01:23 AM
Is XML supports transformation of HTML to XML? zeeonline XSLT 1 July 28th, 2006 05:13 PM
Html to XML stevoie XSLT 2 February 6th, 2006 12:37 PM
About HTML and XML sachinkumar XML 1 June 28th, 2005 10:30 AM
XML to HTML shoei78 XSLT 2 June 24th, 2003 08:49 AM





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