|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: New version of the Table of contents document
I had fallen into the same trap as you did for quite a while until Steve DeRose gave me the hint. In order to avoid validation, your syntax should be: <?xml version="1.0"?> <!DOCTYPE Document [ <!ENTITY XML-topic "http://www.w3.org/XML" > ]> You store &XM-topic; in your 'xlink:href' path. It is very easy for the stylesheet to glue the whole XLINK syntax together. Hope it helps! For the best ... A. -----Original Message----- From: Didier PH Martin [mailto:martind@n...] Sent: Monday, February 07, 2000 10:58 AM To: Amanda Xu; 'Peter Murray-Rust' Cc: xml-dev@i... Subject: RE: New version of the Table of contents document Hi Amanda, Amanda said: I am very new to this. Please forgive me if I made a mistake. As far as I am concerned, all the identifiers (either a URL pointer, dumb number like a DOI, or a meaningful number like issn, or SICI should be surrounded by metadata in a registry service. And it is the metadata that need namespaces. I tried to declare entities in the XML document instead of DTD on IE5 for client-side processing. It works. As we all know, the IE5 for the client-side processing is a non-validating parser. I have not tried it on the server-side yet. By the way, the idea of doing so should be credited to Steven DeRose. Hope this helps! Didier replies: You have to define an entity inside a DTD declaration otherwise IE 5 gives you an error. So, you created a DTD that includes an entitiy declaration let's say something like: (is it like below, or different?) <?xml version="1.0"?> <!DOCTYPE Document [ <!ENTITY % XML-topic SYSTEM 'http://www.w3.org/XML' > ]> Now to be more precise for the problem at hand. How do you replace the xlink:href attribute's value by the entity and have the IE 5 XML browser to replace the attribute's value by the entity value? The construct is: <topic xlink:type="simple" xlink:title="XML topic" xlink:href....> The goal is to have the right construct so that IE 5 process xlink:href with "http://www.w3.org/XML" as value instead of %XML-topic; Or if your construct is different, can you explicitely show it. Cheers Didier PH Martin ---------------------------------------------- Email: martind@n... Conferences: Web New York (http://www.mfweb.com) Book to come soon: XML Pro published by Wrox Press Products: http://www.netfolder.com
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








