Using attributes inside other attributes

View: New views
1 Messages — Rating Filter:   Alert me  

Using attributes inside other attributes

by Noah Slater-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I am having some problems getting attributes inside other attributes to work.

I have the following sample asciidoc.conf:

  [attributes]

  pubdate         = "2008"
  author          = "Noah Slater"
  publisher       = "Bytesexual"
  copyrightholder = "{publisher={author}}"
  copyrightyears  = "{pubdate}"

There are two problems I am having with this:

  1. the copyrightholder attribute only works if the publisher attribute is set,
     if this is undefined the author attribute is not substituted.

  2. the copyrightyears attribute remains undefined

The documentation seems to indicate that I can use simple attributes like this.

What am I doing wrong?

I am using AsciiDoc version 8.2.5.

Thanks,

--
Noah Slater - Bytesexual <http://bytesexual.org/>
_______________________________________________
asciidoc-discuss mailing list
asciidoc-discuss@...
http://lists.metaperl.com/cgi-bin/mailman/listinfo/asciidoc-discuss