I'm having a bit of a problem with a table when running a2x.

Here's the (generic) error message:

| /home/..../docs/formatted/html/v.xml:40: element literal: validity
| error : Element phrase is not declared in literal list of possible
| children

Commenting out parts of the document, I eventually narrowed it down to
this particular snippet:

.Searches via regular expressions
[width="100%", cols="<3s, <9", options="header"]
|=========================================================================================
| Action                           | Comments
| /\v<([a-zA-Z]+)[\n\t ]+\1>       | matches doubled words separated by space, 
tab, or eol
|=========================================================================================

As it turns out, it's the (all-important) plus sign (+) that causes the
problem.

I replaced it by ‘&#43;’ but is there a less cryptic approach..?

In case anyone has the time to play with this, I'm attaching a sample
document to quickly recreate the error.

Thanks,

CJ

-- 
WE GET SIGNAL

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

Title
=====

Chris Jones <[email protected]>

Abstract
--------

Simple template to create personal docs

Section one
-----------


The power of regular expressions
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Considerably more complex searches can be achieved via extended regular 
expressions.
Coverage of regular expressions is obviously beyond the scope of a Vim Primer. 
The table
below lists a few useful samples.

.Searches via regular expressions
[width="100%", cols="<3s, <9", options="header"]
|=========================================================================================
| Action                           | Comments
| /\v<([a-zA-Z]+)[\n\t ]+;\1>      | matches doubled words separated by space, 
tab, or eol
|=========================================================================================


// vim: set tw=80 syntax=asciidoc:


Reply via email to