This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: using XSL
- To: docbook-apps at lists dot oasis-open dot org
- Subject: Re: DOCBOOK-APPS: using XSL
- From: Michael Smith <smith at xml-doc dot org>
- Date: Wed, 07 Mar 2001 12:56:27 -0800
- References: <01C0A715.BFE68000.martin.bohaty@unicorn.cz>
Martin =?UNKNOWN?Q?Bohat=FD?= <martin.bohaty@unicorn.cz> writes:
> I have simple DocBook XML document which contains following:
>
> <?xml version="1.0"?>
> <!DOCTYPE article
> PUBLIC "-//Norman Walsh//DTD Simplified DocBk XML V3.1.7.1//EN"
> "c:/dbnew/docbookx.dtd">
> <?xml-stylesheet type="text/xsl" href="c:/docbook/xhtml/docbook.xsl"?>
> <article>
> <title>TEST ARTICLE</title>
> <para>This is only test...</para>
> </article>
>
> I am trying to use DocBook XSL to generate HTML, but everything I get is
> only clear page with following text:
>
> No template matches . < > </ > ID ' ' not found in document.
Seems like you must have a non-null value specified somewhere for the
"rootid" parameter -- a space character? -- or your XSLT engine thinks
for some reason that you do.
For example, did you edit the default value specified in (to match
your directory structure) c:/docbook/html/params.xsl and then change
it back but maybe leave a space behind? -- that is:
<xsl:param name="rootid" select="' '" doc:type='string'/>
^
instead of:
<xsl:param name="rootid" select="''" doc:type='string'/>
I can't see what else it could be, because looking at your output and
at the code for the <xsl:template match="/"> template in docbook.xsl:
<xsl:template match="/">
<xsl:choose>
<xsl:when test="$rootid != ''">
<xsl:choose>
<xsl:when test="count(id($rootid)) = 0">
<xsl:message terminate="yes">
<xsl:text>ID '</xsl:text>
<xsl:value-of select="$rootid"/>
<xsl:text>' not found in document.</xsl:text>
</xsl:message>
...
...it seems you should only get what you're getting if somewhere,
somehow, you have a non-null value for "rootid".
------------------------------------------------------------------
To unsubscribe from this elist send a message with the single word
"unsubscribe" in the body to: docbook-apps-request@lists.oasis-open.org
- References:
- using XSL
- From: Martin =?UNKNOWN?Q?Bohat=FD?=