xsl-list
[Top] [All Lists]

Defaulting values in xsl

2005-10-13 09:56:58
Hi All,

I have the following segment in my XSL :
        <Book>
                        <BookName><xsl:value-of select="BOOK_NM"/></BookName>
        </Book>

In my output XML, I want to default the value of <BookName> as
"Unknown" , even if the value of "BOOK_NM" in original document is
null.

In case null , the input XML document will have BOOK_NM as :

< BOOK_NM ></BOOK_NM >

Could you please suggest a solution ?

I am using xalan-j_2_7_0 as the XSLT processor.

Thanks,
Mini

--~------------------------------------------------------------------
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(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>
  • Defaulting values in xsl, Mini Vatsala <=