Altova Mailing List Archives>Archive Index >xsl-list Archive Home >Recent entries >Thread Prev - [xsl] how to avoid generating an < empty element /> [Thread Next] Re: [xsl] how to avoid generating an < empty element />To: Date: 2/5/2009 4:08:00 PM > 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. ________________________________________________________________________ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
