List Info

Thread: Problems resolving olinks




Problems resolving olinks
user name
2006-11-17 22:29:24
Thanks for the debug detail.  The database file isn't being
read.  This 
line indicates the problem:

Olink debug: root element of target.database '' is
'article'.

The name of the target database file should be between the
first quotes, 
and the root element of a database should be 'targetset'.

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobssagehill.net


----- Original Message ----- 
From: "Sean Wheller" <seaninwords.co.za>
To: <docbook-appslists.oasis-open.org>
Sent: Friday, November 17, 2006 1:55 PM
Subject: [docbook-apps] Problems resolving olinks


> Hi,
>
> I had olinks working and now they stopped. Perhaps
somebody can see what 
> is
> wrong.
>
> # There are two files:
> friends-and-family.xml
> <article id="manu-friends-and-family">
>
> service-class-change.xml
> <article
id="manu-service-class-change">
>
> # Directory structure is:
> .:
> build
> manu
> sae-olinkdb.xml
>
> ./manu:
> build_log.xml                    
manu-friends-and-family.db
> build.xml    fop.log
> friends-and-family.xml        
manu-service-class-change.db
> saxon.log service-class-change.xml
>
> # In friends-and-family.xml is an olink to a section in
> service-class-change.xml
> <olink
targetdoc="manu-service-class-change" 
> targetptr="using-scc-service"/>
>
> # In service-class-change.xml this sectionid is
defined
> <section id="using-scc-service">
>
> # The target database for service-class-change.xml is
> manu-service-class-change.db
>
> # In this file:
> <div element="article"
href="#manu-service-class-change"
number=""
> targetptr="manu-service-class-change">
>   <ttl>Service Class Change</ttl>
>   <xreftext>Service Class Change</xreftext>
>   <div element="section"
href="#using-scc-service" number="1"
> targetptr="using-scc-service">
>
> # Using ant for builds:
> <target name="html"
depends="prepass">
> <echo>Creating ${base.file}</echo>
> <java classname="com.icl.saxon.StyleSheet"
> classpathref="project.class.path.saxon"
output="saxon.log">
> <arg line="-x
org.apache.xml.resolver.tools.ResolvingXMLReader"/>
> <arg line="-y
org.apache.xml.resolver.tools.ResolvingXMLReader"/>
> <arg line="-r
org.apache.xml.resolver.tools.CatalogResolver"/>
> <arg line="-u"/>
> <arg line="-o
${out.dir}/${output.html}"/>
> <arg line="${out.dir}/${output.file}"/>
> <arg
line="${docbook.dir}html-cust.xsl"/>
> <arg
line="target.database.document='${target.database.docum
ent}'"/>
> <arg
line="current.docid='${current.docid}'"/>
> <arg line="olink.doctitle='yes'"/>
> <arg line="olink.debug='1'"/>
> </java>
> </target>
>
> # target.database.document or sae-olinkdb.xml looks
like:
>
> <?xml version="1.0"
encoding="UTF-8"?>
> <!DOCTYPE targetset SYSTEM
"libs/docbook/xsl/common/targetdatabase.dtd" [
> <!ENTITY manu-faf-targets SYSTEM
"manu/manu-friends-and-family.db">
> <!ENTITY manu-scc-targets SYSTEM
"manu/manu-service-class-change.db">
> ]>
> <targetset>
> <targetsetinfo>Target database for
SAE</targetsetinfo>
> ..
> <dir name="manu">
> <document
targetdoc="manu-friends-and-family"
> baseuri="friends-and-family.html">
> &manu-faf-targets; </document>
> <document
targetdoc="manu-service-class-change"
> baseuri="service-class-change.html">
> &manu-scc-targets; </document>
> </dir>
>
> # Saxon log shows:
> Olink debug: root element of target.database '' is
'article'.
> Olink debug: cases for
targetdoc='manu-service-class-change' and
> targetptr='using-scc-service' in language 'en'.
> Olink debug: CaseA NOT matched
> Olink debug: No case matched for lang 'en'.
> Olink debug: cases for
targetdoc='manu-service-class-change' and
> targetptr='using-scc-service' in language ''.
> Olink debug: CaseA NOT matched
> Olink debug: No case matched for lang ''.
> Error: unresolved olink: targetdoc/targetptr =
> 'manu-service-class-change/using-scc-service'.
>
> # Ant build_log.xml shows:
> <target name="prepass" time="0
seconds">
> <task
>
location="/home/sean/work/ericsson/docs/trunk/libs/buil
d-common.xml:44: "
> name="exec" time="0 seconds">
> <message
priority="debug"><![CDATA[Current OS is
Linux]]></message>
> <message
priority="debug"><![CDATA[Executing
'xmllint' with arguments:
> '--xinclude'
> '--noent'
> '--nonet'
> 'friends-and-family.xml'
> '--output'
> '../build/manu/temp.xml'
>
> The ' characters around the executable and arguments
are
> not part of the command.]]></message>
> </task>
> </target>
> <target name="html" time="11
seconds">
> <task
>
location="/home/sean/work/ericsson/docs/trunk/libs/buil
d-common.xml:57: "
> name="echo" time="0 seconds">
> <message
priority="warn"><![CDATA[Creating
> friends-and-family]]></message>
> </task>
> <task
>
location="/home/sean/work/ericsson/docs/trunk/libs/buil
d-common.xml:59: "
> name="java" time="11 seconds">
> <message
priority="debug"><![CDATA[Running in same VM
Executing
> 'com.icl.saxon.StyleSheet' with arguments:
> '-x'
> 'org.apache.xml.resolver.tools.ResolvingXMLReader'
> '-y'
> 'org.apache.xml.resolver.tools.ResolvingXMLReader'
> '-r'
> 'org.apache.xml.resolver.tools.CatalogResolver'
> '-u'
> '-o'
> '../build/manu/friends-and-family.html'
> '../build/manu/temp.xml'
> '../libs/html-cust.xsl'
> 'target.database.document=../sae-olinkdb.xml'
> 'current.docid=manu-friends-and-family'
> 'olink.doctitle=yes'
> 'olink.debug=1'
>
> The ' characters around the executable and arguments
are
> not part of the command.]]></message>
> <message
priority="debug"><![CDATA[Output redirected
> to
/home/sean/work/ericsson/docs/trunk/manu/saxon.log]]><
/message>
> </task>
> </target>
>
>
> # But the outcome is ????
>
> Any ideas?
>
> -- 
> Ask me about the Monkey.
>
> Sean Wheller
> Technical Author
> seaninwords.co.za
> +27-84-854-9408
> http://www.inwords.co.za
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
> For additional commands, e-mail: docbook-apps-helplists.oasis-open.org
>
>
> 



------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )