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

Re: Unexpected behavior with tokenize function

Subject: Re: Unexpected behavior with tokenize function
From: "James Fuller" <james.fuller.2007@xxxxxxxxx>
Date: Sun, 23 Mar 2008 10:03:25 +0100
Re:  Unexpected behavior with tokenize function
you could try the EXSLT version of tokenize;

http://www.exslt.org/str/functions/tokenize/index.html

hth, Jim Fuller

On Sat, Mar 22, 2008 at 3:52 PM, Farrukh Najmi
<farrukh@xxxxxxxxxxxxxxxxxxxxx> wrote:
>
>  Glad I am not going crazy after all ;-)
>  I ended up using the following to tokenize a QName into prefix component
>  and local-name component:
>
>       <xsl:variable name='binding-prefix'
>  select="substring-before(@binding, ':')"/>
>       <xsl:variable name='binding-local-name'
>  select="substring-after(@binding, ':')"/>
>
>  Thanks again Mukul for your terrific help.
>
>
>
>  Mukul Gandhi wrote:
>  > I suspect, you are using the Xalan bundled with JDK 5. It might have
>  > some bug, if what you are reporting is true.
>  >
>  > With Xalan-J 2.7.1, I get the result fine.
>  >
>  > PS: For Xalan-J specific questions, I suggest, you can join the
>  > mailing list,  xalan-j-users@xxxxxxxxxxxxxxx The instructions to
>  > subscribe to this list are available at,
>  > http://xml.apache.org/xalan-j/contact_us.html
>  >
>  > On Sat, Mar 22, 2008 at 6:01 PM, Farrukh Najmi
>  > <farrukh@xxxxxxxxxxxxxxxxxxxxx> wrote:
>  >
>  >>  In my style sheet I am using the following fragment that uses the xalan
>  >>  extension function named tokenize:
>  >>
>  >>       <xsl:for-each select="xalan:tokenize('prefix:namespace', ':')">
>  >>         <token>
>  >>           <xsl:value-of select="."/>
>  >>         </token>
>  >>       </xsl:for-each>
>  >>
>  >>  What I expected is the following output:
>  >>
>  >>  <token>
>  >>   prefix
>  >>  </token>
>  >>  <token>
>  >>   namespace
>  >>  </token>
>  >>
>  >>  Instead what I get is:
>  >>
>  >>  <token>
>  >>   prefixnamespace
>  >>  </token>
>  >>
>  >>  Can anyone please clue me in to why that is happening? Thanks.
>  >>
>  >>  ps: Many thanks Mukul for your helpful answer to the WSDL namespace map
>  >>  question. I will report back on my experience with that later.
>  >>
>  >>
>
>
>  --
>  Regards,
>  Farrukh Najmi
>
>  Web: http://www.wellfleetsoftware.com

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.