|
next
|
Subject: Undesired space+newline inserted in XSLT by WYSIWYG view Author: Shannon M Date: 09 May 2006 04:09 PM
|
LOL, your assumption that I am new to XSL is witty, if not serious.
If I wanted to be hand-coding stylesheets, I would have continued using Visual Studio, rather than purchasing Stylus Studio.
Yes, I suspected you would recommend either using a variable or replicating the entire output inside an xsl:if block.
Firstly, that certainly didn't make it clearer.
Secondly, depending on the preceding tags, Stylus Studio may still break the line and insert a space prior to the 's' representing the plural items, creating a variable with an inherent space.
Thus, not only is it not more elegant, it does not solve the problem I mentioned.
If your point, ultimately, is that it is suboptimal to put whitespace formatting in text blocks, I agree. However, the XML whitespace handling rules exist for a reason, and they should be observed by the editor as well as the processor. Sometimes code similar to the examples I've given is necessary.
I take the end result to be there is not a way to prevent Stylus Studio from exhibiting any of the three behaviours I asked after?
Would you please submit a bug request for me?
|
|
|
|