Subject: Re: [xsl] how to avoid generating an < empty element /> From: Manuel Souto Pico <manuel.souto@xxxxxxxxxxxxxx> Date: Thu, 05 Feb 2009 17:15:41 +0100 |
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. ________________________________________________________________________
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] how to avoid generating a, David Carlisle | Thread | [xsl] translating character referen, Ganesh Babu N |
Re: [xsl] how to avoid generating a, David Carlisle | Date | Re: [xsl] Free XML Editor?, Robert Raleigh |
Month |