- From: Hausenblas, Michael <michael.hausenblas@joanneum.at>
- Date: Fri, 29 Jun 2007 10:18:05 +0200
- To: <public-rdf-in-xhtml-tf@w3.org>
- Cc: <public-swd-wg@w3.org>
Regarding >[NEW] ACTION: Michael create a .htaccess hack to make the test >case identifiers resolve to something useful [recorded in >http://www.w3.org/2007/06/28-rdfa-minutes.html#action01] Rational: Enable a human readable representation of a single TC. Solution: I put together an XSLT [1] rendering a single TC from a manifest file [2] into an HTML representation. I then created a rewrite rule in the .htaccess file of the according test case repository [3]: RewriteRule ^Test([0-9]{4})$ http://www.w3.org/2005/08/online_xslt/xslt?&xslfile=http://www.w3.org/20 06/07/SWD/RDFa/testsuite/tc2html.xslt&xmlfile=http://www.w3.org/2006/07/ SWD/RDFa/testsuite/xhtml1-testcases/rdfa-xhtml1-test-manifest.rdf&TCID=h ttp://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/Test$1$2$3$ 4 The result is as follows; if you now click on, say, http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/Test0011 you get an HTML table view on this TC. The XSLT also ensures that if someone enters an undefined TC ID, a warning message returns. For example, http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/Test0099 currently returns: 'The TC http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/Test0099 is not defined. Please consult the RDFa Test Suite.' I hope with this 'hack' the action can be marked as 'DONE' ;) Cheers, Michael [1] http://www.w3.org/2006/07/SWD/RDFa/testsuite/tc2html.xslt [2] http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/rdfa-xhtml 1-test-manifest.rdf [3] http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/ ---------------------------------------------------------- Michael Hausenblas, MSc. Institute of Information Systems & Information Management JOANNEUM RESEARCH Forschungsgesellschaft mbH http://www.joanneum.at/iis/ ----------------------------------------------------------
Received on Friday, 29 June 2007 08:15:36 UTC