W3C home > Mailing lists > Public > public-powderwg@w3.org > October 2008


From: Smith, Kevin, \(R&D\) VF-Group <Kevin.Smith@vodafone.com>
Date: Fri, 3 Oct 2008 11:12:53 +0200
Message-ID: <37AC1116121D3F43B9A67CB16E2E79FF8CCA04@VF-MBX11.internal.vodafone.com>
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.


Is regex-escaped to 


...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


...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.


-----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
Received on Friday, 3 October 2008 09:13:40 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:06:04 UTC