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

RE: coodinate tranformation

Subject: RE: coodinate tranformation
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Sat, 12 Jun 2004 15:30:53 +0100
saxon tokenize
saxon:tokenize is a Saxon extension function, the second argument is the
actual separator, e.g. " " for a single space. The default if you omit the
second argument is to separate on any whitespace.

You're confusing it with the XPath 2.0 tokenize() function, which takes a
regular expression as its second argument. So you can either use tokenize()
with "\s" as the second argument, or saxon:tokenize with no second argument.

Michael Kay

> -----Original Message-----
> From: sarra hamdi [mailto:hacker249@xxxxxxxxx] 
> Sent: 12 June 2004 09:20
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  coodinate tranformation 
> 
> 
> hello,
> I have a gml coordinate that I want trosform it in svg 
> coordinate, using xsl transformation.
> I validated my files with xml exchange editor and the saxon processor.
> I used the tokenize function like: 
> select="saxon:tokenize(*/gml:coordinates, '\s')", the result 
> thet I get is a list of all coordinates without 
> transformation,from this  I want know what parameter must I use:
> e.g I have:gml:coordinates>0 50, 70 60, 80 90</gml:coordinates>
> select="saxon:tokenize(*/gml:coordinates, '\s')"
> the current result: <path d="0 50, 70 60, 80 90"/>
> how can I obtain: <path d="M0 50, L 70 60, L 80 90" />
> thank you
> 
> 
> ____________________________________________________________
> Find what you are looking for with the Lycos Yellow Pages
> http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.c
> om/default.asp?SRC=lycos10
> 
> --+------------------------------------------------------------------
> 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@xxxxxxxxxxxxxxxxxxxxxx>
> --+--
> 
> 



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.