[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: [xsl] Inserting commented elements into output file
Subject: RE: [xsl] Inserting commented elements into output file From: Jarno.Elovirta@xxxxxxxxx Date: Thu, 12 Jun 2003 11:43:54 +0300 |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Inserting commented eleme, Michael Kay | Thread | [xsl] Inserting commented elements , Joseph Kesselman |
RE: [xsl] how to show one number of, Jason | Date | [xsl] Re: XSL-List Digest V4 #1380, Neil Smith |
Month |