xml editor

   XML Editor
   XML Author
      DITA Editor
      DocBook Editor
      TEI Editor
      XHTML Editor
      Schema Editor
      XML Schema Editor
      RelaxNG Editor
   XQuery
   SVN Client
      Office Open XML
      XSL:FO Editor
      SVG Editor
      WSDL Editor
Supported platforms
Compatible with Windows7 & Mac OS X Snow Leopard
Ready for
data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] I don't get it... line breaks (sorry, I know this has been discussed many times)


Subject: Re: [xsl] I don't get it... line breaks (sorry, I know this has been discussed many times)
From: "Mike Haarman" <mhaarman@xxxxxxxxxxxxxxxxxx>
Date: Thu, 1 May 2003 10:34:51 -0500

----- Original Message ----- 
From: "Karl J. Stubsjoen" <karl@xxxxxxxxxxxxx>

> Ok, I have the following "for-each" which calls a template, the template
> returns a hidden form variable.  When I *View Source* all of the elements
> appear on the same line.  I mean, this isn't a horrible thing, but I'd like
> to know how to control this behaviour.  I'm guessing that when you
> "apply-templates" that the loop which occurs naturally (and I call it a
> "natural" loop for lack of a better term) there in the match creates line
> breaks in the source.  Correct?

http://www.w3.org/TR/xslt#strip

1) use xsl:text to hold breaks;
2) use direct character reference to your EOL of choice;
3) specify element names which hold or strip space in a space separated list
within the attributes xsl:strip-space and xsl:preserve-space.  The latter allows
for whitespace in the instance XML to slip past the mechanism implementing 3.4
above.

hth,

Mike


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread
Keywords
xml
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2009 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>® XML Editor