xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas B. Passin" <tpas...@mitretek.org>
Subject Re: including
Date Mon, 21 Aug 2000 13:39:16 GMT
Peter Levine asked about CDATA sections in xslt output.

Yes, you tell the xsl:output method that certain elements should be
output as CDATA.  From the XSLT Rec:

"<!-- Category: top-level-element -->
  method = "xml" | "html" | "text" | qname-but-not-ncname
  version = nmtoken
  encoding = string
  omit-xml-declaration = "yes" | "no"
  standalone = "yes" | "no"
  doctype-public = string
  doctype-system = string
  cdata-section-elements = qnames
  indent = "yes" | "no"
  media-type = string />
cdata-section-elements specifies a list of the names of elements whose
text node children should be output using CDATA sections"

> I would like to create an XML file via XSLT that contains within it
> elements that I can copy from a source XML file (which describe a PDF
> files) as as well as the PDF file itself (as PDF). Among other
> I'm having trouble inserting a literal <![CDATA[... ]]> tag in this
> XML file. Is what I attempting possible?

View raw message