cancel
Showing results for 
Search instead for 
Did you mean: 

How to Build the 'User Guide'?

ccappuccino
Champ in-the-making
Champ in-the-making
Hi
  Tom/Jbarrez
  I have downloaded the trunk from SVN, when I build the User Guild (On Intel CPU, Windows XP Service Pack3) with the cammand:
  "build.html", I encountered these errors:
[size=150]

  [xslt] : Error! Syntax error in '* or $generate.index != 0'.
  [xslt] : Error! file:/D:/CD/activiti/code/activiti/trunk/userguide/target/docbook-tool-1.0/docbook-xsl/html/autotoc.xsl: line 373: Error parsing XPath expression '* or $generate.index != 0'.
  [xslt] : Error! file:/D:/CD/activiti/code/activiti/trunk/userguide/target/docbook-tool-1.0/docbook-xsl/html/autotoc.xsl: line 373: Required attribute 'test' is missing.
   …………………………….
  [xslt] : Error! Syntax error in '* and $process.source.toc != 0'.
  [xslt] : Error! file:/D:/CD/activiti/code/activiti/trunk/userguide/target/docbook-tool-1.0/docbook-xsl/html/toc.xsl: line 32: Error parsing XPath expression '* and $process.source.toc != 0'.
  [xslt] : Error! file:/D:/CD/activiti/code/activiti/trunk/userguide/target/docbook-tool-1.0/docbook-xsl/html/toc.xsl: line 32: Required attribute 'test' is missing.
[/size]
  But I don't find any syntax error in that two files: autotoc.xsl & toc.xsl;
  I google that and can't get any useful suggestions; so could you give me some helps???
2 REPLIES 2

tombaeyens
Champ in-the-making
Champ in-the-making
could it be a problem with the file encoding of the toc.xsl ?  or some chacter in the toc.xsl?

This is how lines 30 - 35 look on my mac

    <xsl:variable name="content">
      <xsl:choose>
        <xsl:when test="* and $process.source.toc != 0">
          <xsl:apply-templates />
        </xsl:when>
        <xsl:when test="count(*) = 0 and $process.empty.source.toc != 0">

another source of the problem could be in the actual value of $process.source.toc.  maybe there is some windows invalid char in that file.

you can experiment by updating the xsl files in the userguide/target/docbook-tool directory.  if that dir is present, it is used as-is

ccappuccino
Champ in-the-making
Champ in-the-making
Thanks Tom.
But the content on my windows looks like in your Mac. Haha.
Tomorrow I will do a test in a LINUX OS and see the result ……  Smiley Sad