[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xml-apache-general
Subject:    Re: including
From:       "Thomas B. Passin" <tpassin () mitretek ! org>
Date:       2000-08-21 13:39:16
[Download RAW message or body]

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 -->
<xsl:output
  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
problems
> I'm having trouble inserting a literal <![CDATA[... ]]> tag in this
new
> XML file. Is what I attempting possible?
>



---------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic