XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
+ Stylus Studio Technical Forum (14621)
+ Website Feedback (249)
+ XSLT Help and Discussion (7625)
+ XQuery Help and Discussion (2017)
- Stylus Studio FAQs (159)
-> + Use XSD to produce sample XML... (2)
-> + Port to MAC OS X (2)
-> + First-time running froze! :( (2)
-> + how to register stylus studio ... (5)
-> + Wrapped Lines (3)
-> + CSV to XML Conversion (2)
-> + Xquery ques. How to check for ... (2)
-> + XQUERY default views (3)
-> + DB to XML Data Conversion issu... (2)
-> - Rendering XForms with XSLT-sty... (1)
-> + Multiple XSDs to XML (2)
-> + Tables in WISIWYG (2)
-> + Does Stylus Studio provide API... (2)
-> + xlink (2)
-> + Tags in WYSIWYG (2)
-> - Removing spaces from XSLT Sour... (2)
-> ->Removing spaces from XSLT...
-> + SS capabilities (3)
-> + Stylus Studio 3.1 in Windows X... (2)
-> + Macros and API (2)
-> + Stylus Studio FO support (2)
-- [1-20] [21-40] [41-60] Next
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
Topic  
Postnext
Harry WedemeijerSubject: Removing spaces from XSLT Source
Author: Harry Wedemeijer
Date: 27 Nov 2002 06:44 AM
Hi,

When mapping an XML to XML file, the generated XSLT source contains spacing around every tag, e.g.:
    
        
    

But I would like to have:
    

because my XSLT processor (Perl XML::XSLT) inserts all those spaces and newlines in my resulting XML file.

How can I do that ?

Thanks,
--
Harry Wedemeijer                  TNO Institute of Applied Physics
  Phone : +31 15 2692274            P.O. Box 155         
  Fax   : +31 15 2692111            2600 AD  Delft
  Email : wedemeijer@tpd.tno.nl     The Netherlands

Posttop
Lee HumphriesSubject: Removing spaces from XSLT Source
Author: Lee Humphries
Date: 27 Nov 2002 06:59 PM
First of all, in the xsl:output element make sure you set the indent attribute to "no" e.g. <xsl:output method="xml" encoding="UTF-8" indent="no"/>

You can also use the xsl:strip-space element, although you'll need to use a different XSLT processor than the native one within Stylus Studio to see the result (go to XSLT->Scenario Properties->Processor tab and pick another).

   
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.