- From: Smith, Kevin, \(R&D\) VF-Group <Kevin.Smith@vodafone.com>
- Date: Fri, 3 Oct 2008 11:12:53 +0200
- To: "Toby A Inkster" <tai@g5n.co.uk>
- Cc: <public-powderwg@w3.org>
Hi Toby, Good question - I had started in XSLT 1.0 but changed to XSLT 2.0 to utilise the replace() function: the part I was having trouble with was to ensure that a host, e.g. example.co.uk Is regex-escaped to example\.co\.uk ...which is much easier in XSLT 2.0 using replace() within a function. XSLT 1.0 cannot translate '.' to '\.' as only the first character (namely '\') is used by the function, i.e. you end up with example\co\uk. Plus of course we need to consider hosts containing any of $-_.+!*'(), ...as they need to be regex-escaped too. So I can work on an XSLT 1.0 version but it will take longer, I'll see if there are any prebuilt stylesheets I can find which can help. Best, Kevin -----Original Message----- From: Toby A Inkster [mailto:tai@g5n.co.uk] Sent: 02 October 2008 22:40 To: Smith, Kevin, (R&D) VF-Group Cc: public-powderwg@w3.org Subject: Re: ETA on XSLT for POWDER to POWDER-S On 1 Oct 2008, at 10:18, Smith, Kevin, ((R&D)) VF-Group wrote: > (Apologies for delay in answering) No problem. > I have a draft XSLT which I will revise and make available later this > week: if you were able to feedback any issues or comments that would > be much appreciated. The Formal Semantics document seems to imply that this will be in XSLT 1.0 rather than XSLT 2.0. Is that the case? I'd certainly prefer the former as the XSLT engine I'm using (GNOME's libxslt) only supports 1.0. I'll certainly post feedback once I've started implementing. -- Toby A Inkster <mailto:mail@tobyinkster.co.uk> <http://tobyinkster.co.uk>
Received on Friday, 3 October 2008 09:13:40 UTC