xsl-list
[Top] [All Lists]

Re: [xsl] how to avoid generating an < empty element />

2009-02-05 11:16:11
Dear David,

I was trying with normalize-space... but strip-space is what I needed.

The result is perfect now, and much more concise. Thanks a lot for your help! ;)

Cheers, Manuel

David Carlisle escribió:
but ideally it should output the langSet for any language, so I tried replacing the code above with

                <xsl:for-each select="langSet">
                   <xsl:copy-of select="current()"/>
                </xsl:for-each>

That's equivalent to

<xsl:copy-of select="langSet"/>

but more verbose.


However, the format is akward, with one blank line between every two lines of contents,

add
<xsl:strip-space eleemnts="*"/>

to lose white space from the input and

<xsl:output indent="yes"/>

to add more appropriate space to the output.

and things will probably turn out OK.

David

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. ________________________________________________________________________

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--