From: SourceForge.net <no...@so...> - 2004-10-22 20:26:45
|
Bugs item #975230, was opened at 2004-06-18 11:27 Message generated for change (Settings changed) made by kosek You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373747&aid=975230&group_id=21935 Category: DocBook XSL Group: DocBook V4 Status: Open Resolution: None Priority: 5 Submitted By: Tobias Reif (tobi__r) >Assigned to: Jirka Kosek (kosek) Summary: target attributes invalidate XHTML strict Initial Comment: $ tee < in.dbx <?xml version="1.0"?> <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> <refentry> <refnamediv> <refname>foo</refname> <refpurpose></refpurpose> </refnamediv> <refsection> <title>bar</title> <simpara><ulink url="http://www.ibiblio.org/gferg/ldp/man/man1/ed.1.html"/></simpara> </refsection> </refentry> $ tee < driver.xslt <?xml version='1.0'?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:import href="/home/tobi/bulk/run/docbook_sf_net/xslt/1_65_1/xhtml/docbook.xsl"/> <xsl:output method="xml" encoding="US-ASCII" indent="no" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" /> <xsl:param name="html.stylesheet">man.css</xsl:param> <xsl:param name="make.valid.html" select="1"/> <xsl:param name="html.cleanup" select="1"/> </xsl:stylesheet> $ xmllint --format out.html <?xml version="1.0" encoding="US-ASCII"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII" /> <title>foo</title> <link rel="stylesheet" href="man.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1" /> </head> <body> <div class="refentry" lang="en" xml:lang="en"> <a id="id2393886"></a> <div class="titlepage"> <div></div> <div></div> </div> <div class="refnamediv"> <h2>Name</h2> <p>foo — </p> </div> <div class="refsection" lang="en" xml:lang="en"> <a id="id2497606"></a> <h2>bar</h2> <p> <a href="http://www.ibiblio.org/gferg/ldp/man/man1/ed.1.html" target="_top">http://www.ibiblio.org/gferg/ldp/man/man1/ed.1.html</a> </p> </div> </div> </body> </html> $ xmllint --valid --noout out.html out.html:5: element a: validity error : No declaration for attribute target of element a <p><a href="http://www.ibiblio.org/gferg/ldp/man/man1/ed.1.html" target="_top" ^ $ Note: AFAICS the empty <div class="titlepage"> <div></div> <div></div> </div> should not be there. (I also get this with a real refentry, where refpurpose has content) The main issue is: The output is invalid, I neither want nor need target="_top". I think that at least with the parameters I set, no target attributes should be generated, per default. Something else (not really part of this bug report): With this in the input doc: <refentryinfo> <title>foo Manual</title> <copyright> <year>2004</year> </copyright> <author> <firstname>Tobias</firstname> <surname>Reif</surname> </author> <releaseinfo>draft 2004-06</releaseinfo> </refentryinfo> neither releaseinfo nor the copyright year appear in the output (neither in the man page nor in the (X)HTML version) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373747&aid=975230&group_id=21935 |