[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: Free beer and multiple special characters in XML
Subject: RE: Free beer and multiple special characters in XML From: Bernhard Keil <Bernhard.Keil@xxxxxx> Date: Thu, 2 Sep 1999 19:09:06 +0200 |
can't you just use CDATA-Sections?- like: <tag><![CDATA[ .... any characters here .... ]]></tag> -----Original Message----- From: regan@xxxxxxxxxxx [mailto:regan@xxxxxxxxxxx] Sent: Thursday, September 02, 1999 6:15 PM To: xsl-list@xxxxxxxxxxxxxxxx Subject: Free beer and multiple special characters in XML Hi, No one answered my question last time so I thought I would spice it up. (However, I would be happy to buy anyone a glass of their favorite beverage if they were kind enough to help!) I am looking for the best way to make sure that special characters are handled correctly in my XML documents, I don't know ahead of time what special characters will be entered, so the possibilities are huge. I was hoping there was a way to just refer to listings of character entities instead of having to include them in all my XML docs. I don't have a great understanding of this issue, so if the answer is obvious, please excuse my ignorance. -Regan -----Original Message----- From: regan@xxxxxxxxxxx [mailto:regan@xxxxxxxxxxx] Sent: Tuesday, August 31, 1999 6:26 PM To: xsl-list@xxxxxxxxxxxxxxxx Subject: multiple special characters in XML Hi all, I have never had a good grasp of special character handling but was able to get by until now... I hope some kind soul here will help with my current crises We have an application that takes sections of user generated HTML files, embeds these sections into a large XML file, then later, when requested, generates an HTML file from the XML and a XSL file (using XT). Our users have started introducing funny characters into the HTML (OK, what happens is they use Microsoft Word to introduce the funny characters and Word does the conversion to HTML, and we end up with "é" or some such in our HTML - then our XML) To handle this example I can add <!ENTITY eacute "é"> to the XML header. But then if they add something else cute tomorrow I am stuck with bad XML again, until I add a new declaration. I could add all possible declarations now and have huge XML documents (We store 1000s of them) Alternatively I could look for all the referenced entities and construct an appropriate header for each document, which seems like a lot of overhead when they seldom add such things. But, are these the only answers? Surely there is a way to reference these special characters as they are listed in other documents available on the net? Please help if you can. Thanks, Regan Gill regan@xxxxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Free beer and multiple special , Zsolt Czinkos | Thread | XSL List Archives?, Mike Brown |
Re: Matching empty tags, Araquel, Ed E. | Date | XSL List Archives?, Mike Brown |
Month |