- From: Ruadhan O'Donoghue <rodonoghue@mtld.mobi>
- Date: Tue, 15 May 2007 10:04:00 +0100
- To: "Jo Rabin" <jrabin@mtld.mobi>, Roland Gülle <roland@7val.com>
- Cc: "Sean Owen" <srowen@google.com>, <public-mobileok-checker@w3.org>
In the moki document, the element primaryDoc contains the default namespace: <primaryDoc xmlns=""> This looks a little suspicious. Shouldn't the default namespace should be set in the moki element, and not in an element one level down? Ruadhan > -----Original Message----- > From: Jo Rabin > Sent: 15 May 2007 09:55 > To: Roland Gülle; Ruadhan O'Donoghue > Cc: Sean Owen; public-mobileok-checker@w3.org > Subject: RE: More checked into CVS > > Hi Roland, > > I think there is a typo in what you propose > > > <xsl:stylesheet version="1.0" > > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > > > > xmlns:xmlns="http://moki.mobi/2007/v0.1"> > > Shouldn't we actually be setting the default namespace by > > xmlns="http://moki.mobi/2007/v0.1" rather than by > xmlns:xmlns="http://moki.mobi/2007/v0.1"? > > (Good to see you yesterday, btw, sorry we had to rush off - hope the rest > of the meeting went well) > > Jo > > P.S. It occurs to me that there may be a W3C policy on namespaces, which I > guess we (I) should find out about ... > > > -----Original Message----- > > From: public-mobileok-checker-request@w3.org [mailto:public-mobileok- > > checker-request@w3.org] On Behalf Of Roland Gülle > > Sent: 15 May 2007 09:43 > > To: Ruadhan O'Donoghue > > Cc: Sean Owen; public-mobileok-checker@w3.org > > Subject: Re: More checked into CVS > > > > > > > I had a similar problem. It seems that when the namespaces are > > > included > > > in the moki document: > > > > > > <moki xmlns="http://moki.mobi/2007/v0.1" > > > xmlns:http="http://www.w3.org/2006/http#" > > > xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> > > > > > > , xpath queries from the root node don't work, but things like > > > //html/head/title would still work. > > > > > > When I removed the namespaces the queries seemed to work for me, so > > > I've > > > been tailoring my xpath off-line in the hope that someone else > > > knows how > > > to get around this... > > You have to add the namespace in your stylesheet: > > > > <?xml version="1.0" encoding="UTF-8"?> > > <xsl:stylesheet version="1.0" > > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > > > > xmlns:xmlns="http://moki.mobi/2007/v0.1"> > > > > <xsl:output method="xml" version="1.0" encoding="UTF-8"/> > > > > <xsl:template match="/"> > > <test><xsl:value-of select="/xmlns:moki//html/head/ > > title"></xsl:value-of></test> > > </xsl:template> > > </xsl:stylesheet> > > > > Another way is to use the local-name: > > /*[local-name() = 'moki']/... > > > > >> There is still some problem with how I'm writing XSL. Selecting for > > >> the existing of nodes just isn't working no matter what I try. Maybe > > >> someone with more XSL knowledge can look at CachingTest.xsl? > > The current XSL is written in XSLT 2.0. > > Is XSLT 2.0 needed, or should XSLT 1.0 be used? > > If XSLT 2.0 needed, knows anyone a light command line XSLT processor > > for Mac OS X? > > > > Roland > >
Received on Tuesday, 15 May 2007 09:04:51 UTC