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

Controlling output element spacing

Subject: Controlling output element spacing
From: Stephane St-Denis <Stephane.St-Denis@xxxxxx>
Date: Mon, 04 Oct 1999 11:23:31 -0400
element spacing
Hi everybody !!!

I have a problem with indentation for html ouput.
My problem is i would like to have a indentation but not for
a specific node.

Example :

XML :
<reference>
<asymbol>[DMR-A-TECH95]</asymbol>
<publisher><nobr>DMR Consulting Group Inc.</nobr></publisher>
<year>1998</year>
</reference>

XSL :

<xsl:stylesheet xmlns:xsl="http://www.w3.org/XSL/Transform/1.0"
xmlns="http://www.w3.org/TR/REC-html40" result-ns="">
<xsl:template match="reference/*">
 <span class="BodyText">
  <xsl:apply-templates select="node()"/>
 </span>
</xsl:template>

<xsl:template match="reference/*[last()]" priority="5">
 <span class="BodyText">
  <xsl:apply-templates select="node()"/>
 </span>
</xsl:template>

HTML OUTPUT :

<span class="BodyText">[DMR-A-TECH95]</span>,
** We have a carriage return before tag "nobr" **
<nobr><span class="BodyText">DMR Consulting Group Inc.</span></nobr>
** We have a carriage return after tag "nobr" **
, <span class="BodyText">1998</span>
</div>

I would like to have indentation for the HTML output but not for the tag
nobr.
Because the carriage return (generate by LotusXSL Processor) put a space

before and after the tag nobr.  It is a problem because when you
concatenate
a string you have a space before and after.

It is possible to desactivate indentation for a specific node ??? (How).

Thanks !!



 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.