Altova Mailing List Archives>Archive Index >xsl-list Archive Home >Recent entries >Thread Prev - >Thread Next - RE: [xsl] How to prevent copying non-existing elements? RE: [xsl] How to prevent copying non-existing elements?To: <xsl-list@-----.------------.---> Date: 8/4/2009 1:04:00 PM > > In pseudo code I need something like > > <xsl:template match="/"> > .... > "if /moxx:aaa/moxx:bbb exists" then ( > <moxx:someelement> > <xsl:value-of select="/moxx:aaa/moxx:bbb"/> > </moxx:someelement>) > .... > > How can I code this in XSLT ? > <xsl:if test="/moxx:aaa/moxx:bbb"> <moxx:someelement> <xsl:value-of select="/moxx:aaa/moxx:bbb"/> </moxx:someelement> </xsl:if> Regards, Michael Kay http://www.saxonica.com/ http://twitter.com/michaelhkay --~------------------------------------------------------------------ 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@l...> --~-- | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
