docbook-apps

  • 1.  Problems resolving olinks

    Posted 11-17-2006 21:55
    Hi,

    I had olinks working and now they stopped. Perhaps somebody can see what is
    wrong.

    # There are two files:
    friends-and-family.xml


    service-class-change.xml


    # 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 section@id is defined


    # The target database for service-class-change.xml is
    manu-service-class-change.db

    # In this file:
    targetptr="manu-service-class-change">
    <ttl>Service Class Change</ttl>
    <xreftext>Service Class Change</xreftext>
    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.document}'"/>
    <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:




    ]>
    <targetset>
    <targetsetinfo>Target database for SAE</targetsetinfo>
    ..

    <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>


    # 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/build-common.xml:44: "
    name="exec" time="0 seconds">
    <message priority="debug"></message>
    <message priority="debug">'--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/build-common.xml:57: "
    name="echo" time="0 seconds">
    <message priority="warn">friends-and-family]]></message>
    </task>
    <task
    location="/home/sean/work/ericsson/docs/trunk/libs/build-common.xml:59: "
    name="java" time="11 seconds">
    <message priority="debug">'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">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
    sean@inwords.co.za
    +27-84-854-9408
    http://www.inwords.co.za