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] | [List Home]


Subject: Re: [docbook-apps] [olink] Stylesheets can't locate targetdoc


Hi Oliver,
Is there also a <document targetdoc="Einstieg">
item in targetset.xml?  It has opened targetset.xml,
and it is trying to compute a relative path between
the current.docid "Einstieg" and "versionierung".
I see that the stylesheet doesn't give a proper error message
when the current.docid document is not found.

If that is not the case, then you should copy the template
named "targetpath" from html/xref.xsl
to your customization and uncomment
these two lines:
<!--
<xsl:message>dirnode is <xsl:value-of select="$dirnode/name"/></xsl:message>
<xsl:message>targetdoc is <xsl:value-of select="$targetdoc"/></xsl:message>
-->

That template is called recursively starting at current.docid to find the
target document.  If dirnode in the first such message is blank, then it
isn't finding the current.docid.

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net


----- Original Message ----- 
From: "Oliver Fischer" <plexus@snafu.de>
To: "apps docbook" <docbook-apps@lists.oasis-open.org>
Sent: Sunday, February 08, 2004 5:40 AM
Subject: [docbook-apps] [olink] Stylesheets can't locate targetdoc


> Hello list,
>
> I try to use a target database for my documents with olinks. I read Bob
> Staytons instructions and created a targetset.xml document. If I process
> my documents, which contains olinks to a document versionierung, I
> always get
>
> xsltproc --novalid  --stringparam target.database.document
> "../querverweise/targetset.xml" --stringparam current.docid  "Einstieg"
> -o index.html ../../../avaniondoc/xsl/docbook/docbook-HTMLSPLIT.xsl
> artikel.xml
> Olink error: cannot locate targetdoc versionierung in sitemap
>
> Does someone know why? The targetset.xml contains the necessary line
>
> <document targetdoc="versionierung">...</document>
>
> Best Regards,
>
> Oliver Fischer
>
> To unsubscribe from this list, send a post to
docbook-apps-unsubscribe@lists.oasis-open.org, or visit
http://www.oasis-open.org/mlmanage/.
>
>
>




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