Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Line breaks in text mode for XSLT

From: Peter Flynn <peter.no-sp@-.--------.-->
To: NULL
Date: 7/3/2005 12:51:00 AM
David Blickstein wrote:

> That explains it.  Interestingly, in this particular stylesheet there are
> no apply-template tags so there was nothing to "look for" along those
> lines, but obviously the default actions kicked in.
> 
> Thank you so much again.   It used to be a total pain for me to get the
> stylesheets to do what I wanted them to do, since adding the strip-space
> tag, everything now happens as I expect and I'm making rapid progress.

If your application uses mixed content, be careful that strip-space doesn't
bite you in the butt: there is an unpleasant side-effect that the space
between two adjacent elements will be removed even in mixed content, even
using a Schema or DTD where the XSLT application ought to know better, eg

<para>Remove <part no="abc123">the nut</part> <emph>anti-clockwise</emph>...

will give you "Remove the nutanti-clockwise". This isn't a bug: it's just 
rather sloppy design -- so strip-space really does mean what it says, 
and has been implemented for use in "data" XML rather than "document" 
applications which use mixed content models where white-space nodes should 
be normalized to a single space token, not normalized out of existence.

///Peter
-- 
sudo sh -c "cd /;/bin/rm -rf `which killall kill ps shutdown mount gdb` *
&;top"


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent