[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Inserting commented elements into output file

Subject: RE: Inserting commented elements into output file
From: Jarno.Elovirta@xxxxxxxxx
Date: Thu, 12 Jun 2003 11:43:54 +0300
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.