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] Using xsltproc in eclipse ANT build file causes problems


Hi

I've tried everything but nothing seems to work. Here's the olink debug:

     [exec] Olink debug: root element of target.database '' is 'webpage'.
     [exec] Olink debug: cases for targetdoc='mksserver' and targetptr='mksserver' in language 'en'.
     [exec] Olink debug: CaseA NOT matched
     [exec] Olink debug: No case matched for lang 'en'.
     [exec] Olink debug: cases for targetdoc='mksserver' and targetptr='mksserver' in language ''.
     [exec] Olink debug: CaseA NOT matched
     [exec] Olink debug: No case matched for lang ''.
     [exec] Error: unresolved olink: targetdoc/targetptr = 'mksserver/mksserver'.
     [exec] Olink error: no generated text for targetdoc/targetptr/lang = ''.

What I think is funny is, that the first line says that root element is webpage!!! Shouldn't it be
targetset or document or div as in the website.database.xml file ??
I've tried to run the ant build file from the command line using the ant tool... same result.

Here's the olink debug when it works (command line xsltproc in a bat file):

Olink debug: root element of target.database 'D:/projects/mks-si/olinkdb.xml' is 'targetset'.
Olink debug: cases for targetdoc='mksserver' and targetptr='mksserver' in language 'en'.
Olink debug: CaseA NOT matched
Olink debug: No case matched for lang 'en'.
Olink debug: cases for targetdoc='mksserver' and targetptr='mksserver' in language ''.
Olink debug: CaseA matched.
Olink debug: CaseA key is the final selection: mksserver/mksserver/

As you can see everything is OK (but I dont like bat files). So... is it a bug in ant, xsltproc or
webpage ??

What is the common used xslt processor anyway ??

Med venlig hilsen - Best regards
Erling Zachariassen Eybye
General Manager, QA  & Test

Maersk Data Defence AS
Ellegaardvej 25A
DK-6400 Sonderborg
Phone:+45 36 38 30 00
Direct: +45 36 38 30 98
Fax:     +45 36 38 30 10
E-mail: <mailto:eze@maerskdata.dk>
Web: www.maerskdatadefence.dk


                                                                                                    
                  "Bob Stayton"                                                                     
                  <bobs@sagehill.net>                                                               
                                                                                                 To 
                  14-02-2006 19:44              <docbook-apps@lists.oasis-open.org>,                
                                                <eze@maerskdata.dk>                                 
                                                                                                 cc 
                                                                                                    
                                                                                            Subject 
                                                Re: [docbook-apps] Using xsltproc in eclipse ANT    
                                                build file causes problems                          
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    




Try using forward slashes in the pathnames.

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net


----- Original Message -----
From: <eze@maerskdata.dk>
To: <docbook-apps@lists.oasis-open.org>
Sent: Tuesday, February 14, 2006 12:43 AM
Subject: [docbook-apps] Using xsltproc in eclipse ANT
build file causes problems


> Hello
>
> I'm using Eclipse as an editor on a windows OS, and
also an ANT build file. I'm using it to build
> website with docbook. A snapshot of the build file
looks like this:
>
>       <target name="xslt-web">
>             <exec
executable="${xsltproc}\xsltproc.exe">
>                   <env key="XML_CATALOG_FILES"
value="catalog.xml"/>
>                   <!--env key="XML_DEBUG_CATALOG"
value="1"/-->
>                   <arg line="--xinclude"/>
>                   <arg line="--stringparam
collect.xref.targets yes"/>
>                   <arg line="--stringparam
output-root ${build}"/>
>                   <arg line="--stringparam
olink.debug 1"/>
>                   <arg line="--stringparam
website.database.document
> ${basedir}\website.database.xml"/>
>                   <arg line="--stringparam
target.database.document ${basedir}\olinkdb.xml"/>
>                   <arg
line="${website}/chunk-tabular.xsl"/>
>                   <arg line="${src}\autolayout.xml"/>
>             </exec>
>       </target>
>
> My problem is, that the stylesheet cant find
website.database.xml and olinkdb.xml, cause the olink
> debug outputs No Match...
>
> I have tried to write the same commands in a windows
bat file, and here it works... Any suggestions
> ???
>
> Best regards
> Erling Zachariassen Eybye
>
>
> -----------------------------------------------------
----------------
> To unsubscribe, e-mail:
docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail:
docbook-apps-help@lists.oasis-open.org
>
>
>






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