- From: Chimezie Ogbuji <ogbujic@ccf.org>
- Date: Mon, 23 Apr 2007 13:12:47 -0400
- To: "Fabien Gandon" <Fabien.Gandon@sophia.inria.fr>
- cc: "Hausenblas, Michael" <michael.hausenblas@joanneum.at>, public-rdf-in-xhtml-tf@w3.org, "public-grddl-wg" <public-grddl-wg@w3.org>, "Dan Connolly" <connolly@w3.org>, "Harry Halpin" <hhalpin@ibiblio.org>
Hello Fabien. I was working on a general purpose RDFa -> RDF/XML modality for an Atom feed over the weekend and used this transformation stylesheet (or the one in the GRDDL WG repository: grddl-wg/td/RDFa2RDFXML_v_0_7.xsl). I had to make some changes to get it to work and thought you might be interested. I didn't commit the changes, below is a diff: RCS file: /w3ccvs/WWW/2001/sw/grddl-wg/td/RDFa2RDFXML_v_0_7.xsl,v retrieving revision 1.1 diff -u -b -r1.1 RDFa2RDFXML_v_0_7.xsl --- RDFa2RDFXML_v_0_7.xsl 20 Apr 2007 12:39:52 -0000 1.1 +++ RDFa2RDFXML_v_0_7.xsl 23 Apr 2007 16:47:04 -0000 @@ -15,7 +15,7 @@ <variable name='base' select="//*/@xml:base[position()=1]"/> <!-- url of the current XHTML page if provided by the XSLT engine --> -<param name='url' select=""/> +<param name='url' select="''"/> <!-- this contains the URL of the source document weither it was provided by the base or as a parameter e.g. http://example.org/bla/file.html--> <variable name='this' > @@ -191,7 +191,7 @@ <value-of select="normalize-space(substring-before($string,' '))"/> <call-template name="tokenize"><with-param name="string" select="normalize-space(substring-after($string,' '))"/></call-template> </when> - <otherwise><text><value-of select="$string"/></text></otherwise> + <otherwise><value-of select="$string"/></otherwise> </choose> </if> </template> In particular: 1) The default value for the $url is an empty string. The way it was before, it was not a valid XPath expression and 2) <xsl:value-of/> cannot be used within <xsl:text> (http://www.w3.org/TR/xslt#section-Creating-Text) I also wondered if the lack of support for blank node CURIES (i.e., [_:a]) was because this is an 'unstable' feature in RDFa? Otherwise, the transform worked wonderfully! On Sun, 2007-04-15 at 19:53 +0200, Fabien Gandon wrote: > Question #2: What happened to the use of "class" attribute? > Since I found no trace of it in the tests and in the syntax, I > deactivated its use in the transformation. Yes, I was going to ask about this as well, but I notice there is an ongoing discussion about it in public-rdf-in-xhtml-tf@w3.org :) -- Chimezie Ogbuji Lead Systems Analyst Thoracic and Cardiovascular Surgery Cleveland Clinic Foundation 9500 Euclid Avenue/ W26 Cleveland, Ohio 44195 Office: (216)444-8593 ogbujic@ccf.org Cleveland Clinic is ranked one of the top 3 hospitals in America by U.S.News & World Report. Visit us online at http://www.clevelandclinic.org for a complete listing of our services, staff and locations. Confidentiality Note: This message is intended for use only by the individual or entity to which it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. Thank you. ===================================
Received on Monday, 23 April 2007 17:13:07 UTC