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 14th, 2006, 07:57 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Perhaps you can share the solution?

--

Joe (Microsoft MVP - XML)
 
Old November 14th, 2006, 11:18 AM
Authorized User
 
Join Date: Nov 2006
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The mistake I made at last was in the initial declaration..
 <?xml version="1.0" encoding="ISO-8859-1">
The above statement appeared twice in my xml file because of which I was getting the run time error.

I removed it and the file worked.
The output file I got is now finally in XML format with tags in it.

Thanx so much!!

 
Old November 14th, 2006, 11:22 AM
Authorized User
 
Join Date: Sep 2006
Posts: 92
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hey guys,

If you are displaying the result in the browser surely you need to include HTML tags to get the output formatted.

A minimum would be <br /> to get linebreaks or, even better, a table.

For example:

<xsl:template match="dataroot">
 <html>
 <head>
 </head><body>

  [code with HTML tags]

 </body></html>
</xsl:template>

... but maybe I missed something or am over-simplifying?

Regards,
Alan Searle.






Similar Threads
Thread Thread Starter Forum Replies Last Post
strip html tags with xslt smiter XSLT 4 June 19th, 2012 08:34 AM
xslt for tags dnandhak XSLT 4 May 23rd, 2008 05:57 AM
add HTML tags via XSLT chopswil2 XSLT 3 November 5th, 2007 09:30 AM
Replacing tags within xml using xslt patelgaurav85 XSLT 0 June 19th, 2007 12:34 PM
adding tags to output amitda XSLT 4 June 1st, 2007 11:51 AM





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