Quantcast
Channel: Adobe Community : Popular Discussions - Adobe FrameMaker
Viewing all articles
Browse latest Browse all 23442

Creating drop-down list for element in causes errors

$
0
0

Frame 11

DITA 1.2

 

Due to restrictions beyond our control, we must use absurdly long product names. Therefore I want to use drop-down lists to make it easier for the authors to select a <prodname> in the metadata.

 

What I did:

1. In metaDecl.eddmod.fm, I created a new attribute and named it prod.

    a. I made it the Choice, and Required.

    b. The Choices currently are just Internal and RTVI for testing purposes. I'll put the absurdly long ones in when I have it working.

    c. I have a Prefix rule of: In all contexts Prefix: Product Name: <$attribute[prod]>

 

2. I imported metaDecl.eddmod.fm to all of these EDDs:

    In the base EDD  folder:

  • basemap.edd.fm
  • basetopic.edd.fm
  • map.eddmod.fm
  • topic.eddmod.fm

   In the technicalContent EDD folder:

  • concept.edd.fm
  • ditabase.edd.fm
  • generalTask.edd.fm
  • glossentry.edd.fm
  • glossgroup.edd.fm
  • reference.edd.fm
  • task.edd.fm
  • topic.edd.fm

 

3. I imported the element definitions into all of the following:

  • ChapterOutputTpl.fm
  • basemap.template.fm
  • basetopic.template.fm
  • basetopic.template.fm
  • topic.template.fm
  • generalTask.template.fm
  • glossentry.template.fm
  • glossgroup.template.fm
  • map.template.fm
  • ditabase.template.fm
  • reference.template.fm
  • concept.template.fm
  • task.template.fm

 

4. I imported the elememted definitions from task.template.fm into my test document (yes, it is a task topic).

 

What happened:

I get the following error message in the console:

XML Parser Messages (Document Instance)

Error at file H:\DITA_Westminster\Procedures - Our DITA\Inserting_Product_Names_Versions_In_Metadata\InsertingProductNam esAndVersionsInMetadata.dita.82F, line 28, char 49, Message: Attribute 'prod' is not declared for element 'prodname'

Error at line 28, char 71, Message: Not enough elements to match content model  '(prodname,vrmlist,((brand|component|featnum|platform|prognum|series) )*)'

 

What I did next:

1. I removed all elements from the general rule of <prodinfo> with the exception of <prodname>. <prodinfo) is the one that had prodname, vrmlist, (brand|component|featnum|platform|prognum|series) in the general rule. I also did a thorough search to ensure that no other element had this same list of element in the general rule. I couldn't find any.

 

2. I did the import to the EDDs and templates thing again.

 

3. I got the same error message again. <sigh />

 

Question:

Why am I still getting those 2 error messages? They are driving me crazy.

 

Marsha


Viewing all articles
Browse latest Browse all 23442

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>