Subject: RE: [xsl] coodinate tranformation From: "Michael Kay" <mhk@xxxxxxxxx> Date: Sat, 12 Jun 2004 15:30:53 +0100 |
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: [xsl] 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] coodinate tranformation, George Cristian Bina | Thread | XSLT subtree pruning/ filtering usi, Chisanga Mwelwa |
Re: [xsl] XSLT subtree pruning/ fil, J.Pietschmann | Date | Displaying multiple instances of th, Daniel Palmer |
Month |