This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: feature request


Rick Geimer writes:
 > proper way to do this. If someone could show me how I could create an
 > XML 1.0 document using XSLT that would parse the same as the following
 > document, I would be very happy:
 > 
 > <!DOCTYPE foo [
 > <!ELEMENT foo EMPTY >
 > <!ATTLIST foo img ENTITY #IMPLIED >
 > <!NOTATION gif PUBLIC "-//NATIONAL//NOTATION Compuserve gif format//EN"
 > "" >
 > <!ENTITY testimg SYSTEM "testimg.gif" NDATA gif >
 > ]>
 > <foo img="testimg"/>

something that I have never really understood is what good this
NOTATION stuff really ever did. does anyone seriously use it? as
opposed to second-guessing based on file contents?

I entirely take your point that XSLT cannot do this, but I wonder
whether in practice many people will care. I suspect people will just
write

 <!ELEMENT foo EMPTY >
 <!ATTLIST foo
	img CDATA #REQUIRED 
	type "gif|tif|png" "png"
	>

 <foo img="testimg.gif" notation="gif"/>

which is almost as useful. them thar notations will go in the pool of
SGML things are nice, but which one would not go to the stake for.

no, of course I know that you cannot change your publishing system
overnight...

Sebastian


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]