OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Subject: Re: DOCBOOK-APPS: using XSL

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:when test="$rootid != ''">
        <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>

 ...it seems you should only get what you're getting if somewhere,
somehow, you have a non-null value for "rootid".

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Powered by eList eXpress LLC