<xsl:template match="/"><xsl:ccopy-of select="."/></xsl:template>
Michael Kay
http://www.saxonica.com/
-----Original Message-----
From: Mike Stroud [mailto:stroudmw(_at_)gmail(_dot_)com]
Sent: 13 February 2009 07:58
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] cdata
Hi again everyone,
First of all, many thanks for the help I received with my
substring query!
My next query regards cdata. I start with this:
<?xml version="1.0" encoding="Windows-1252" ?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output indent="yes" method="xml"
cdata-section-elements="Description Longdesc"/>
I have 2 fields "Description" and "Longdesc" that I want in
cdata as they contain odd characters. Is there an easy way of
copying the entire XML file so that those 2 fields are
translated into cdata? I don't want to go through the entire
XML file line-by-line.
Many thanks,
Mike.
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--