[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Bad element when DTD specified

Subject: RE: Bad element when DTD specified
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Fri, 03 Sep 1999 19:49:18 -0400
svg xsl template
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.xsl <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl='http://www.w3.org/XSL/Transform/1.0' xmlns="http://www.w3.org/TR/REC-html40" result-ns=""> <xsl:output method="html"/> <xsl:template match="/" > <html> <head> <title> <xsl:text>SVG RDF </xsl:text> </title> </head> <BODY> <xsl:apply-templates/> </BODY> </html> </xsl:template> <xsl:template match="g"> <xsl:choose> <xsl:when test="@id"> <p><b>Item: </b> <xsl:value-of select="@id"/> <br /> <b> Title: </b><xsl:value-of select="./title"/> <br /> <b> Description: </b> <xsl:value-of select="./desc"/> <xsl:apply-templates/> </p> </xsl:when> <xsl:otherwise> <xsl:apply-templates/> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template match="desc"> </xsl:template> <xsl:template match="title"> </xsl:template> </xsl:stylesheet>

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


Second desc Second title


</BODY> </hmtl>

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>


-- G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (Fax:-0995) Website: XSL/XML/DSSSL/SGML services, training, libraries, products. Practical Transformation Using XSLT and XPath ISBN 1-894049-01-2 Next instructor-led training: 1999-09-24, 1999-11-08, 1999-12-05/06, 1999-12-07, 2000-02-27/28, 2000-05-11/12



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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.