Skip to main content
6-Contributor
March 1, 2015
Question

XML stylesheet error

  • March 1, 2015
  • 3 replies
  • 2786 views

Hi!

I am converting SGML doctypes to XML but I get the following error when running the stylesheet validation:

Expected an element name

The error points to a parameter entity in the DTD:

<!ELEMENT entry %tblcon;>

I have removed this and tried validation but the errors always point to parameter entities.

Any help would be appreciated!

Thanks,

Ali

3 replies

12-Amethyst
March 2, 2015

Are you attempting to incorporate the CALS table model in your document type?

Do you have in your AEInstallPath\doctypes\catalog references to the CALS table model?

What is your error message?

ali.shah6-ContributorAuthor
6-Contributor
March 2, 2015

Hi Tim,

Yes I am trying to incorporate the CALS table model in the doctype. My catalog file has a reference to the CALS table DTD.

The Architect error message is:

C:\xml-cch\common\table.dtd : Line: 112 Column: 38

Expected an element name

Line 112 in table.dtd reads:

<!ELEMENT entry %tblcon;>

The %tblcon; parameter entity is in a file called common.dtd and reads:

<!ENTITY % tblcon "(

#PCDATA |

%emph; |

%ref; |

%text; |

picture |

space

)* ">

Please let me know if you need any other info.

Thanks.

12-Amethyst
March 10, 2015

Did you include or reference the calstblx.dtd?

1-Visitor
March 23, 2015

I had a similar problem and it seems that XML does like #PCDATA when you can also call TEXt with a #PCDATA in it too.

I use CALS tables in all our DTDs

My tablecon looks like
<!ENTITY % tblcon "(warning | caution | note | regulation | para | para1 | seqlist | randlist | ftnref | graphic)+" >

the called entity is:

ENTITY % NAVtable PUBLIC "-//Navistar//DTD Fragment for Table Markup V1.01//EN" >

%NAVtable;

We do not type only text in a table hence we do not use PCDATA either in our SGML or XML dtds

12-Amethyst
March 23, 2015

Ali,

Have you gotten your CALS tables to work?

If so, could indicate how you were able to get them working?