Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
Hi Everyone
What i though to be a simple task of adding doctype specific bold/italic and list tags in my .dcf file does not like namespaced tags or my doctype, e.g.
<textstyles>
<bold element="h:b"/">
<italic element="h:i"/">
...
on re-start and pressing the [B] / [I] , I get the error message: "[A20020] Document type is not configures for this formatting Style"
Yet, when you right click in the appropriate liocation in the editor you can add these tags no problem with the 'insert markup' menu.
So i am presuming it is to do with the h: namespace within the .dcf not being declared at this point, but having tried declaring it everywhere i can think of within and out of the dcf, still no luck.
When i edit the .dcf in Editor/Architech inserting the element from the menu, it lists most of the different namespaced elements from my custom schema application correctly except for 2 groups, which come up as ns2: and ns3: instead of a: and h: . But this is the only place, the namespaces are fine everywhere else.
All NS are declared correctly in the stylesheet and the XML instance.
I have found some example of NS in .dcf with <insertautowithin> but copying this method did not help.
If anyone has done this before or if you can see I have overlooked something obvious, i'd be greatefull. 🙂
Regards
Chris
This was resolved by trial and error, the customer schema although valid by XML spy and created with Oxygen ommitted some ns declarations from the root <xs:schema> element of a mixed content model modularised Schema as they are not used in that module, and Editor does not support that in a doctype, hence not allowing the dcf config to use the defined namespaced element.
No documentation, error messages, tools or samples lead to the resolution, so its a good thing to know if your using multiple namespaces 😉
Cheers
Chris