xsl-list
[Top] [All Lists]

RE: Inserting commented elements into output file

2003-06-12 01:43:54
Hi,

But I'd like to produce the following (where the rdf:RDF element is 
surrounded by comments):
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>test</title>
<!--
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";>
<Work rdf:about="">

comments generated with xsl:comment cannot contain elements, only text. You can 
hack this using d-o-a, but that's a hack and your processor might not support 
it.

I'd suggest you go around the problem and either output the RDF into a separate 
file and like to it using

  <link rel="meta" type="application/rdf+xml" href="meta.rdf"/>

or write the metadata as N3, e.g.

  <meta name="meta" content="@prefix : 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#> . <> a <Work>; <license> 
<http://creativecommons.org/licenses/by-nc-sa/1.0/> . 
<http://creativecommons.org/licenses/by-nc-sa/1.0/> a <License>; <permits> 
<http://web.resource.org/cc/DerivativeWorks>, 
<http://web.resource.org/cc/Distribution>, 
<http://web.resource.org/cc/Reproduction>; <prohibits> 
<http://web.resource.org/cc/CommercialUse>; <requires> 
<http://web.resource.org/cc/Attribution>, <http://web.resource.org/cc/Notice>, 
<http://web.resource.org/cc/ShareAlike> ."/>

Cheers,

Jarno - Dulce Liquido: Incubos

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>