473,804 Members | 3,396 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Character entities and XML Schema

Hello,

Below is a snippet from a schema. The second enumeration should contain
an i umlaut (archaïsch) but when I use this schema with Altova's
Stylevision software the iumlaut is not displayed properly. So I
changed it into a character entity. I tried several entity declarations
(examples found on the web) but none of them worked i.e. Stylevision
refused to load the schema. So, I want to know the following: is it
possible to use character entities in schemas? If yes, what is the
proper way to declare them in a schema?

<xs:element name="Tijd" minOccurs="0" maxOccurs="unbo unded">
<xs:simpleTyp e>
<xs:restricti on base="xs:string ">
<xs:enumerati on value="verouder end"/>
<xs:enumerati on value="archasch "/>
<xs:enumerati on value="neologis me"/>
<xs:enumerati on value="overig"/>
</xs:restriction>
</xs:simpleType>
</xs:element>

Thanks.

Peter van der Kamp

Jul 23 '05 #1
2 1863
On 21 Jul 2005 07:46:09 -0700, in comp.text.xml you wrote:
If yes, what is the proper way to declare them in a schema?


I'm not sure but ï instead of i umlaut works for me.
See: http://www.htmlhelp.com/reference/ht...es/latin1.html

Groeten,

Rinus Luijmes.
Jul 23 '05 #2
ka**@inl.nl writes:
Hello,

Below is a snippet from a schema. The second enumeration should contain
an i umlaut (archaïsch) but when I use this schema with Altova's
Stylevision software the iumlaut is not displayed properly. So I
changed it into a character entity. I tried several entity declarations
(examples found on the web) but none of them worked i.e. Stylevision
refused to load the schema.
Detailes of the entity declarations you used would be
helpful here.
So, I want to know the following: is it
possible to use character entities in schemas? If yes, what is the
proper way to declare them in a schema?


A schema document is an XML document like any other;
give it a doctype declaration and declare 'iuml' (or
whatever name you're using) there. If your schema tools
don't read the external DTD subset, you may be forced
to put the declaration for the entity into the internal
subset. If your tools interpret the existence of a
DOCTYPE declaration as an instruction to validate the
schema document and treat invalidity as a fatal error,
you might wish to look for other tools; if you can't
do that or just want to live with the tools you've
got, you can make the doctype declaration point to
the DTD for schema documents which is part of the
XML Schema spec.

Alternatively, your problem may be that your tools
don't accept the ï character only because of an
encoding problem: if your XML declaration explicitly
or implicitly tells the software to expect UTF-8,
and you hand it a document encoded in ISO 8859-1,
they have a right to complain.

Third alternative: use a numeric character reference,
not a general-entity reference. No declaration needed,
and no useful name, just a decimal or hex number,
useful for all of us who have memorized the UCS
character tables.

I hope this helps.

--C. M. Sperberg-McQueen
World Wide Web Consortium
Jul 26 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
1855
by: Robert Brown | last post by:
Our customer (of our ecommerce system) wants to be able to preserve deleted entities in the database so that they can do reporting, auditing etc. The system is quite complex where each end user can belong to multiple institutional affiliations (which can purchase on behalf of the user). The end user also has a rich trail of past transactions affiliations etc. Thus in the schema each user entity is related to many others which in turn...
76
15159
by: Zenobia | last post by:
How do I display character 151 (long hyphen) in XHTML (utf-8) ? Is there another character that will substitute? The W3C validation parser, http://validator.w3.org, tells me that this character and the ones around it are illegal - then, after resubmission it flags no errors. So, are there any illegal characters between 0 and 255 in the UTF-8 character set or is it just my imagination that the W3C validation parser thinks there are -...
19
3403
by: Ian | last post by:
I'm using the following meta tag with my documents: <meta http-equiv="Content-Type" content= "text/html; charset=us-ascii" /> and yet using character entities like &rsquo; and &mdash; It validates at W3C and WDG, and runs in standards compliance mode in Firefox 0.9. What I'm wondering is, is this a good practice? I assume my pages will load faster if declared as using the
50
4359
by: The Bicycling Guitarist | last post by:
A browser conforming to HTML 4.0 is required to recognize &#number; notations. If I use XHTML 1.0 and charset UTF-8 though, does &eacute; have as much support as é ? Sometimes when I run the TIDY utility on my code, it replaces my character notations with weird looking things I don't recognize. Also, when I converted to UTF-8 from ISO-8859-1, I discovered many special characters
1
1352
by: suresh | last post by:
How can I use HTML character entities in my xml file? it has reference of Schema file(.xsd) which has fixed structure defined by our client. so without disturbing to schema, I want to use character entities to allow special character entries like chemical formulae using greek letters, superscript/subscript values, integral symbol, etc. Thanks in advance Suresh
40
3123
by: Shmuel (Seymour J.) Metz | last post by:
I'd like to include some Hebrew names in a web page. HTML 4 doesn't appear to include character attributes for ISO-8859-8. I'd prefer avoiding numeric references, e.g., "&#x05E9;&#x05DE;&#x05D5;&#x05D0;&#x05DC;". Is there currently a standardized set of character attributes for Hebrew? If so, is there a downloadable set of definitions for those attributes? Thanks. --
2
5585
by: Diilb | last post by:
I am using DOM to create an rss feed. The problem I am running into is "special characters" such as é è ç. If I try adding them to the XML as character data (CData), DOM chokes and throws out errors. If I do a search and replace on the characters changing them to HTML entities instead of using CDATA, DOM chokes up again. If I do a combination of both (search and replace then add as Character Data) it does not choke, but the RSS...
3
2074
by: bsagert | last post by:
Some web feeds use decimal character entities that seem to confuse Python (or me). For example, the string "doesn't" may be coded as "doesn’t" which should produce a right leaning apostrophe. Python hates decimal entities beyond 128 so it chokes unless you do something like string.encode('utf-8'). Even then, what should have been a right-leaning apostrophe ends up as "’". The following script does just that. Look for the string "The...
7
2580
by: tempest | last post by:
Hi all. This is a rather long posting but I have some questions concerning the usage of character entities in XML documents and PCI security compliance. The company I work for is using a third party ecommerce service for hosting its online store. A few months ago this third party commerce site began using PGP file encryption on XML files (e.g. web orders) transferred to us as part of the ongoing PCI security compliance.
0
9579
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10577
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10320
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7620
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6853
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4299
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3820
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2991
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.