Hi,
If the attribute value from the input xml is optional. how do i write my
xsl:if so that if the value is present get the value else default to "unknown"
Example, if my input xml is like this
<check value="123" phone="1112223333"/>
since value is optional if want to provide an if condition if value not present
use "unknown" else use @value
Thanks,
-----Original Message-----
From: Joris Gillis [mailto:roac(_at_)pandora(_dot_)be]
Sent: Monday, January 17, 2005 4:14 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] format strings
Tempore 21:55:10, die 01/17/2005 AD, hinc in
xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com scripsit Luke Shannon
<lshannon(_at_)futurebrand(_dot_)com>:
I wonder if I could use the same function to sub a <p> for a <fo:block>
in a string?
No, 'translate()' can only substitute single characters.
regards,
--
Joris Gillis (http://www.ticalc.org/cgi-bin/acct-view.cgi?userid=38041)
"Et ipsa scientia potestas est" - Francis Bacon , Meditationes sacrae
--~------------------------------------------------------------------
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>
--~--
--~------------------------------------------------------------------
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>
--~--