[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Blank lines in transformed XML

Subject: Blank lines in transformed XML
From: "Thomas Jackie R Ctr HQ 754 ELSG/LRM" <Jackie.Thomas.Ctr@xxxxxxxxxxxxx>
Date: Tue, 6 Nov 2007 07:45:49 -0600
 Blank lines in transformed XML
We are transforming xml being output by a program into xml to match our
xml schema.  We basically copy the original xml in the following way:
<xsl:template match="/"><xsl:apply-templates /></xsl:template> and/or
<xsl:template match="*"><xsl:copy><xsl:apply-templates
/></xsl:copy></xsl:template> and then we maniputlate the xml where
needed. In doing so we rename tags, manipulate tag contents and omit
tags altogether.  The way we are omitting tags is with a blank template
match.  For example <xsl:template match="title"/> is our way of omitting
any <title> tags from our transformed xml.  The problem is, the
transformed xml now has blank lines anywhere a <title> tag would have
appeared.

How do we remove the blank lines from the transformed xml.  We are using
xml/xslt 1.0 and the xerces parser.  Thanks for any help.

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.