W3C home > Mailing lists > Public > public-cdf@w3.org > September 2007

Re: RDF + Script

From: Doug Schepers <schepers@w3.org>
Date: Sun, 16 Sep 2007 23:22:33 +0900
Message-ID: <46ED3C29.7060308@w3.org>
To: ~:'' ありがとうございました。 <j.chetwynd@btinternet.com>
Cc: public-cdf@w3.org

Hi, Jonathan-

~:'' ありがとうございました。 wrote (on 9/10/2007 5:46 PM):
> 
> hope this was for public consumption...

I certainly hope so, as well, because it's now public.  I'd prefer you 
ask permission to share private messages.  In this case, no harm done, 
it was just a silly little throw-away project.


> that really is a very nice example, thanks once again.

No problem, I find simple programming like that relaxing, which I needed
after the stressful 2 weeks previous.


> My concept was for examples that did not require script.
> though failing that, script seems to be a useful and necessary first step.

I gathered you were talking about script:
"Nobody's been able to show me a way that you can use RDF with
client-side scripting or CSS to actually use the RDF" [1]


> As with many things it would be enlightening to hear the views of others.

Sure.


> initial ideas might include:
> a user style sheet to identify public domain icons within a document.

I don't know of a way you could do that, but maybe someone who knows CSS
better than I do could work it up.  Note also that CSS is not
namespace-aware, so that might throw a wrinkle into things... then
again, maybe not.  Assuming that the icon contained RDF, you'd want to
use selectors to identify all elements that have an "RDF" child element,
and AFAIK, CSS can only pinpoint elements which have a particular
parent, not a particular child.  Then you'd have to assess if children
of that RDF block contained matches for particular strings to find if
the the license was a public domain one... again, I doubt you can do
this in CSS.

However, both of these methods are easy in script (QED my example), and
you could then set the style via script if that's what you want.

[1]
http://wiki.cetis.ac.uk/Putting_the_User_at_the_Heart_of_the_W3C_Process#Part_2:_Transcript


Regards-
-Doug Schepers
W3C Staff Contact, SVG, CDF, and WebAPI
Received on Sunday, 16 September 2007 14:22:32 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:10:41 GMT