Subject: Re: how to avoid generating an < empty element />
From: Manuel Souto Pico <manuel.souto@xxxxxxxxxxxxxx>
Date: Thu, 05 Feb 2009 17:15:41 +0100
|
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 escribis:
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.
________________________________________________________________________
|