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

Re: Layout of text output.

Subject: Re: Layout of text output.
From: tcn@xxxxxxxxxxxxx (Trevor Nash)
Date: Wed, 27 Jun 2001 08:56:56 GMT
nash layout
Hello Romain,

>Hello,
> I'm a bit new to that list and also new to xsl, so I hope my question 
> hasn't already been answered (I've unsucessfully browsed the faq's).
>
You probably looked for 'layout'.  You may have more luck with 'white
space'.

> My problem is as follows, I use xml to describe documents where terminals
> (text) are only stored in attribute of nodes. In other words there is no
> text node in my xml sources.

Ther are you know!  If you write "<x/>  <y/>" you get three nodes: the
second is a text node containing spaces.  This is quite likely to get
copied to the output because that is what the built-in template for
text nodes does.

Probably the easiest way to fix this in your case is to use the
xsl:strip-space element.  For other alternatives I would recommend the
section in Mike Kay's book XSLT Programmers Reference.

> I use xslt to produce a text output (using the
> java xalan2 processor). Basically, I want the layout of the output to only
> depend upon what I put in the xsl templates. However, I observe that the 
> form of the output is sensitive to the way the source is indented which is 
> quite unfortunate to me ! 
> Of course, the line "<xsl:output method="text" indent="no"/>" has no effect!
>
> Any hint would greatly helps!
>
> Thanks in advance,
>   Romain.
>
>
>
> XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Regards,
Trevor Nash

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


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.