|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Bad element when DTD specified
At 99/09/03 20:13 +0100, you wrote:
Output <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> Interesting ... I didn't get your results, but I did get inconsistent results quite similar to yours: I get what I expect without the DOCTYPE and I don't get what I expect with the DOCTYPE, because it isn't the same thing. The attribute lists are declared with #IMPLIED defaults, so I don't see that that could be doing anything ... but I somehow feel there must be a connection there. Sorry I can't help ... below is my result (with "html" changed to "hmtl" so that my mailer won't screw up) ... to see how it is different than yours. ................ Ken
T:\dave>type svg.xml <?xml version="1.0"?> <!DOCTYPE svg SYSTEM "SVG-19990812.dtd"> <svg> <g> <desc content="structured text">Contained Description of it</desc> <title content="structured text">Contained Title of it</title> <g> <desc content="structured text">Second desc</desc> <title content="structured text">Second title</title> </g> </g> </svg> T:\dave>call xsl svg.xml svg.xsl svg.htm T:\dave>sed /html/s/html/hmtl/g <svg.htm <!DOCTYPE hmtl PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <hmtl xmlns="http://www.w3.org/TR/REC-hmtl40"> <head> <title>SVG RDF </title> </head> <BODY> Contained Description of it Contained Title of it
T:\dave>type svg-nodt.xml <?xml version="1.0"?> <svg> <g> <desc content="structured text">Contained Description of it</desc> <title content="structured text">Contained Title of it</title> <g> <desc content="structured text">Second desc</desc> <title content="structured text">Second title</title> </g> </g> </svg> T:\dave>call xsl svg-nodt.xml svg.xsl svg-nodt.htm T:\dave>sed /html/s/html/hmtl/g <svg-nodt.htm <!DOCTYPE hmtl PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <hmtl xmlns="http://www.w3.org/TR/REC-hmtl40"> <head> <title>SVG RDF </title> </head> <BODY> </BODY> </hmtl> T:\dave> T:\dave>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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








