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

Subject: Re: [xsl] how to avoid generating an < empty element />
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 5 Feb 2009 16:07:47 GMT
> 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,


<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.


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