Subject: RE: Bad element when DTD specified From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Fri, 03 Sep 1999 19:49:18 -0400 |
Output <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: Bad element when DTD specified, DPawson | Thread | fo:inline-sequence, Hadar, Oren |
Re: fo:inline-sequence, Paul Tchistopolskii | Date | Re: How to catch comments with SAX , Tony Graham |
Month |