This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Newbie troubles with Docbook/XML + XHTML


On Thu, May 02, 2002 at 10:37:42PM -0500, David Cramer wrote:

> I don't know about #1--doesn't seem like the xmlns should be a problem,

Well for one it bloats the filesize. Is validator.w3.org incorrect in
rejecting it as valid XHTML ?

Note that I /don't/ get the xmlns on every tag with chunk.xsl (only on
<div>, <html> etc.)

> (i.e. no parameter names will change or behave in a different way). It's
> not so much writing your own xsl, as maintiaining a list of preferences.

Mmm, true.

> As for use.id.as.filename being off by default--don't know if it's the
> reason, but problem mentioned in the Red Hat Network Alert below is
> something to consider.

Well I guess a proper fix for that would just somehow make sure the path
is safe (not exactly a new problem ;)

> <!-- this will give you the doctype on your chunks -->

This doesn't seem to make any difference. My entire xsl :

<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
 xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"; version="1.0">
<xsl:import href="/usr/share/sgml/docbook/xsl-stylesheets/xhtml/chunk.xsl"/>
<xsl:param name="use.id.as.filename" select="1"/>
<xsl:output method="xml" encoding="ISO-8859-1" indent="no"
 doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
 doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"; />
</xsl:stylesheet>

Another thing: is there a simple way to get human-readable XHTML output ?
regards
john

-- 
"ken kesey wrote 'one flew over the center of the cuckolded lizard man, 
 who strayed from his mistakes when he is a madeup word.'"
	- Mega HAL


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