xsl-list
[Top] [All Lists]

Re: [xsl] Condition problem

2009-11-04 04:31:36
2009/11/4 Ganesh Babu N <nbabuganesh(_at_)gmail(_dot_)com>:
Dear All,

I am having the following input:

<cross-ref>[<cr refid="MEP_L_bib32">32</cr>–<cr
refid="MEP_L_bib35">35</cr>]</cross-ref>

<cross-ref>[<cr refid="MEP_L_bib23">23</cr>–<cr


That's not well-formed...


This the code I have tried.

<xsl:template match="cross-ref">
       <xsl:when test="matches(.,'-') or matches(.,'–')">


Where is xsl:choose?  Surely you get an exception with that...
<rant>You've been on this list for a long time now, you know how to
form a question so why repeatedly post rubbish?</rant>



-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

--~------------------------------------------------------------------
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>