xsl-list
[Top] [All Lists]

Re: how to ask analyze-string for only one match?

2006-01-23 15:04:19
cknell(_at_)onebox(_dot_)com wrote:

So, are you saying that with these elements:

  currentX=<xsl:value-of select="regex-group(2)"/>f;
  currentY=<xsl:value-of select="regex-group(5)"/>f;

you wish to extract the two numbers to the right of 'M'?

Yes, and it extracts them. Then extracts the pair after the L's too and causes the currentX and currentY to be set again and again without the code in between resulting in the last available pair being the current x and y. But the path needs the commands M L z etc. to give meaning to the points.



--~------------------------------------------------------------------
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(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--