|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Inserting commented elements into output file
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








