Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
From: Matthieu Ricaud-Dussarget <matthieu.ricaud@ig...> - 2011-07-20 15:16:16
|
David, I post here your answer which was not on the list. You are right about this article that treat XML with regexp instead of parsing it as XML. Be sure my projects are all about XML : I work with "book" (printed ones and numerics ones). But the article points out problems which I also have, espacially those ones : * 1.3 Default attributes in DTD are added to the output This is an extremely irritating problem when transforming e.g. XHTML to XHTML. We can make extra templates to prevent default attributes from being copied out, but it can be a lot of extra work and you must know the details of the DTDs. => I whish there were a parameter to say yes or no, add those extra attributes * 1.7 Character entities are replaced : This is most often what we want but sometimes it can be irritating. E.g.: XHTML web designers use   (non-breaking space) between words in headlines to prevent line breaks in small browser windows. When   is replaced by a non-breaking-space looking like a space, " "; you can't control if you have remembered to use non-breaking spaces just by looking at the source code. => it's a big problem to me which I'd like to solve with a simple parameter At least I like to understand the reason of such restrictions, most of them have one actually ! Regards, Matthieu. Le 20/07/2011 16:53, David Carlisle a écrit : > On 20/07/2011 15:37, Matthieu Ricaud-Dussarget wrote: >> I have been reading this article about identity transformation : >> http://www.xmlplease.com/identity-template >> A big challenge ! > > Note you almost certainly don't need to do that (unless you do need to > do it:-) > > that is showing how to read the xml file as text rather than xml and > gather information that an xml parser is defined to discard. it's > possible to do that but if you need to do it a lot it's probably an > indication that xml isn't right for the project. If an xml parser > isn't what you need for your input data that should be a hint that xml > isn't the format you need for your input either.... > > David -- Matthieu Ricaud IGS-CP Service Livre numérique |