Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: Help with xslt [Thread Next] Re: Help with xsltTo: NULL Date: 8/3/2007 1:31:00 PM On Aug 3, 2:38 pm, Peter Flynn <peter.n...@m.silmaril.ie> wrote: > TexasAggie96 wrote: > > I have XML that looks like below from which I want to make the VALUE > > tags that are empty (ie <Value/>) default to <Value>0.00</Value> and > > then I want to pull out certain values, for which I already have the > > XSLT for, which is also seen below. > > <Value> > <xsl:choose> > <xsl:when test="x:Value=''"> > <xsl:text>0.00</xsl:text> > <xsl:when> > <xsl:otherwise> > <xsl:value-of select="x:Value"/> > <xsl:/otherwise> > </xsl:choose> > </Value> > > ///Peter > -- > XML FAQ:http://xml.silmaril.ie/ Worked great! Thanks much for the help. JW | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
