[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Expanding Ranges

Subject: RE: Expanding Ranges
From: "Joga Singh Rawat" <jrawat@xxxxxxxxxxxxxx>
Date: Fri, 20 Mar 2009 11:47:04 +0530
RE:  Expanding Ranges
You can try it by matching <cr> with condition <xsl:if
test="following::text()='-'"> !!!

-----Original Message-----
From: Ganesh Babu N [mailto:nbabuganesh@xxxxxxxxx]
Sent: Friday, March 20, 2009 11:17 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  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@xxxxxxxxxxxxxx>
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@xxxxxxxxx]
> Sent: Friday, March 20, 2009 10:33 AM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  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@xxxxxxxxxxxxxx>
> 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.

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.