I am having problems with what should be something very basic. 
I can not get include working. 

I have tried numerous permutations in numerous locations. 
The macro forms fail silently, 
the {include: file }
fails reporting the file does not exist.
I have tried absolute paths, full access to everyone, run asciidoc as
root, I was using the asciidoc in ubuntu, but I switched to installing
and using the mercurial repository copy 

But the results are consistently wrong. 

I must be doing something really stupid, but I am blind to it. 


root@hp-dhlii:/var/www/site/src/ad# make a2x
/usr/local/bin/a2x -v -v -L -a toc! -f docbook article.txt 
a2x: args: ['-v', '-v', '-L', '-a', 'toc!', '-f', 'docbook',
'article.txt']
a2x: resource files: []
a2x: resource directories: ['/usr/local/etc/asciidoc/images',
'/usr/local/etc/asciidoc/stylesheets']
a2x: executing: /usr/local/bin/asciidoc.py --backend docbook
--attribute toc! --verbose
--out-file /usr/local/www/site/src/ad/article.xml 
/usr/local/www/site/src/ad/article.txt
asciidoc: reading: /usr/local/etc/asciidoc/asciidoc.conf
asciidoc: reading: /usr/local/etc/asciidoc/asciidoc.conf
asciidoc: reading: /usr/local/www/site/src/ad/article.txt
asciidoc: reading: /usr/local/etc/asciidoc/docbook45.conf
asciidoc: reading: /usr/local/etc/asciidoc/filters/code/code-filter.conf
asciidoc:
reading: /usr/local/etc/asciidoc/filters/latex/latex-filter.conf
asciidoc:
reading: /usr/local/etc/asciidoc/filters/music/music-filter.conf
asciidoc:
reading: /usr/local/etc/asciidoc/filters/graphviz/graphviz-filter.conf
asciidoc:
reading: /usr/local/etc/asciidoc/filters/source/source-highlight-filter.conf
asciidoc: reading: /usr/local/etc/asciidoc/lang-en.conf
asciidoc: writing: /usr/local/www/site/src/ad/article.xml
asciidoc: article.txt: line 9: evaluating: {include: defs.inc }
asciidoc: WARNING: article.txt: line 9: {include: defs.inc }: file does
not exist
asciidoc: article.txt: line 15: evaluating: {include: defs.inc}
asciidoc: WARNING: article.txt: line 15: {include: defs.inc}: file does
not exist
asciidoc: article.txt: line 22: evaluating: {include: defs.inc}
asciidoc: WARNING: article.txt: line 22: {include: defs.inc}: file does
not exist
root@hp-dhlii:/var/www/site/src/ad# 

root@hp-dhlii:/var/www/site/src/ad# ls -al
total 12
drwxr-xr-x  2 root     root     128 2011-07-28 22:46 .
drwxr-xr-x 10 www-data www-data 296 2011-07-28 22:38 ..
-rw-r--r--  1 www-data www-data 426 2011-07-28 22:40 article.txt
-rwxrwxrwx  1 root     root     174 2011-07-28 22:07 defs.inc
-rwxr-xr-x  1 root     root     123 2011-07-28 22:41 Makefile

defs.inc
1 :company: DLA Systems

article.txt

  1 The Article Title
  2 =================
  3 :author:    David H. Lynch_Jr.
  4 :email:     [email protected]
  5 :revdate:   July 28, 2011
  6 :revnumber: 1.0.1
  7 
  8 
  9 {include: defs.inc }
10 
11 
12 This is a test
13 {company} continues
14 
15 {include: defs.inc}
16 
17 [abstract]
18 Example Abstract
19 ----------------
20 more testing {company} continues
21 
22 {include: defs.inc}
23 
24 The First Section
25 -----------------
26 even more testing
27 {company} continues.




-- 
Dave Lynch                                                  DLA Systems
Software Development:                                    Embedded Linux
717.587.7774           [email protected]    http://www.dlasys.net
Over 25 years' experience in platforms, languages, and technologies too
numerous to list.

"Any intelligent fool can make things bigger and more complex... It
takes a touch of genius - and a lot of courage to move in the opposite
direction."
Albert Einstein

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/asciidoc?hl=en.

Reply via email to