This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Output: XML to XML scrambling unicode characters
- From: Mike Ferrando <mikeferrando at yahoo dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Mon, 4 Mar 2002 07:41:32 -0800 (PST)
- Subject: [xsl] Output: XML to XML scrambling unicode characters
- Reply-to: xsl-list at lists dot mulberrytech dot com
Dear List (et al.),
I have been reading the XALAN posts concerning using xsl:output and
have not found the problem I have having with my XML to XML
transformation. My unicode is being scrambled. I am receiving no
parsing errors. I have been successful in transforming them using the
following command line:
saxon Rodgers1-cnt.xml MyEAD2.xsl > R1.xml
Anyone have an idea of what I am missing here?
[code below]
Mike F.
Here is my output (R1.xml):
<?xml version="1.0" encoding="utf-8"?>
<RODGERS1>
<ITEM>
<TITLE>Rhythm</TITLE>, <C1007>from <PERSNAME ENCODINGANALOG="700$a"
ROLE="lyr" NORMAL="Charlot, André">André Charlot</PERSNAME> revue
<TITLE NORMAL="" LINK="" RENDER="">Please!</TITLE>, <DATE NORMAL=""
LABEL="">1933</DATE></C1007>
</ITEM>
</RODGERS1>
Here is my xml (Rodgers1-cnt.xml):
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE RODGERS1 SYSTEM "Rodgers1.dtd" >
<RODGERS1>
<ITEM>
<TITLE>Rhythm</TITLE>, <C1007>from <PERSNAME ENCODINGANALOG="700$a"
ROLE="lyr" NORMAL="Charlot, André">André Charlot</PERSNAME>
revue <TITLE>Please!</TITLE>, <DATE>1933</DATE></C1007>
</ITEM>
</RODGERS1>
Here is my xsl (MyEAD2.xsl):
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output version="1.0" method="xml" indent="yes" encoding="utf-8"
omit-xml-declaration="no" standalone="no"
doctype-system="Rodgers1.dtd" media-type="text/xml"/>
<xsl:template select="/">
<xsl:copy-of select="//ITEM"/>
</xsl:template>
</xsl:stylesheet>
__________________________________________________
Do You Yahoo!?
Yahoo! Sports - sign up for Fantasy Baseball
http://sports.yahoo.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list