[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Controlling output 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|