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 October 25th, 2005, 01:19 AM
Authorized User
 
Join Date: Oct 2005
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Default removing the reserved line for the xml tag

I am transforming an xml to a txt, and everytime I do that, the first line of the text file is blank which should not I want to happen. I think it is because of the reserve line for the xml declaration. is there a way I can remove this?
thanks.

 
Old October 27th, 2005, 03:20 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

You posted the same question on another forum, I think, and showed your code which was explicitly outputting the newline character.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
 
Old November 2nd, 2005, 04:01 AM
Authorized User
 
Join Date: Oct 2005
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I only post questions here. Anyway, I already found the solution, I just immediately put the <xsl:template match="/"> in the end of the stylsheet tag.
Thanks anyway for the reply.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Transform xml to xml changing one tag. surfer97301 XSLT 2 April 21st, 2010 05:14 PM
how to get xml tag name project2n5e0o1 Ajax 1 December 15th, 2006 09:51 AM
xsl:output and removing space in XML ROCXY XSLT 1 March 21st, 2006 09:38 AM
Reserved word conflict! Timmyboy SQL Language 4 June 14th, 2004 02:00 AM
XML to (different <tag>) XML mapping Thodoris XML 4 April 27th, 2004 04:02 AM





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