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

Re: Fw:

Subject: Re: Fw:
From: Steve Tinney <stinney@xxxxxxxxxxxxx>
Date: Wed, 02 Feb 2000 17:56:10 -0500
akireddy
In order of likelihood, I would guess (it's a bit of a blind guess):
  1) There is a problem with the context in which you are using the
     fragment I posted.  For example, you are looking up an attribute
     which doesn't exist in the map; there should really be more
     error-checking for such cases, probably involving breaking the big
     select down into several variable assignments and testing each step
     for success before proceeding.
  2) There is a bug in your JVM or XSL processor.  I tested with 
     XT 0.5 and Saxon 5.1 with IBM JDK 1.1.8 on Linux, and the
results        were correct given my test input.
  3) Something got garbled in transmission.  I'll e-mail you the test
     data I used and the XSL script as attachments off-list in case 
     that is what happened.
  4) (Just occurred to me) you are using an XSL processor which doesn't
     implement document('') correctly.

It's important always to say which XSL processor you are using when
asking questions on this list.

 Steve

mohamed wrote:
> 
> Thanks Steve, I like your solution a lot but for some reason it's giving me
> a
> java.net.MalformedURLException: : java.lang.StringIndexOutOfBoundsException:
> String index out of range: 0
> 
> at this line
> >       <xsl:element name="{document('')/*/xsl:template[@name='attr-map']
> >                           /map[@attr=name($attr-set[1])]/@elem}">
> 
> any ideas?

-- 
----------------------------------------------------------------------
Steve Tinney                                        Babylonian Section
                                 *   University of Pennsylvania Museum
stinney@xxxxxxxxxxxxx                          Phila, PA. 215-898-4047


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
  • RE:, (continued)
    • Carl Soane - Tue, 1 Feb 2000 18:09:01 -0800
    • Steve Tinney - Tue, 01 Feb 2000 21:31:51 -0500
      • mohamed - Wed, 2 Feb 2000 15:41:33 -0500
        • ravi akireddy - Wed, 2 Feb 2000 17:35:29 -0500
        • Steve Tinney - Wed, 02 Feb 2000 17:56:10 -0500 <=

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.