xsl-list
[Top] [All Lists]

RE: [xsl] Expanding Ranges

2009-03-20 02:18:47
You can try it by matching <cr> with condition <xsl:if
test="following::text()='-'"> !!! 

-----Original Message-----
From: Ganesh Babu N [mailto:nbabuganesh(_at_)gmail(_dot_)com] 
Sent: Friday, March 20, 2009 11:17 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] Expanding Ranges

Agreed,

<p>some text <cross-ref><cr refid="MEPRtbl1">1</cr> and <cr
refid="MEPRtbl2">2</cr>-<cr refid="MEPRtbl4">4</cr></cross-ref>
some text</p>

If the input is like above the child position will change to 2 and 3.
How to get the values which are around "-".

Regards,
Ganesh.

On Fri, Mar 20, 2009 at 11:10 AM, Joga Singh Rawat 
<jrawat(_at_)aptaracorp(_dot_)com>
wrote:
As per your input it is the child of cross-ref and seperated by -, 
which shows that there must be two child if the data consist -.

-----Original Message-----
From: Ganesh Babu N [mailto:nbabuganesh(_at_)gmail(_dot_)com]
Sent: Friday, March 20, 2009 10:33 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] Expanding Ranges

for the sample it is fine. But actually it may come in any child position.
we cannot fix the position as first and second.

Regards,
Ganesh


On Fri, Mar 20, 2009 at 10:00 AM, Joga Singh Rawat 
<jrawat(_at_)aptaracorp(_dot_)com>
wrote:
You can match cross-ref and get the value of first child and second 
child as a value of $start and $end respectively.


Thanks for the code. But how to get $start and $end when "-" is there 
between tags.




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







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







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