cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

Sharing Styler Stylesheets across Multiple Doctypes

jsillari
1-Visitor

Sharing Styler Stylesheets across Multiple Doctypes

Anyone have experience attempting to share the same Styler .style
stylesheet with documents using different doctypes. The root document
element is the same across all XML instances; however, the actual schema
referenced in xsi:noNamespaceSchemaLocation is different (subset of same
umbrella spec). Despite explicitly declaring the doctype = root document
element, Arbortext insists that the doctype = XSD file in
xsi:noNamespaceSchemaLocation attribute. To wit:



using stylesheet association in both documents:



type="text/x-styler" media="editor" alternate="yes"?>



and doctype declaration in both documents,




]>



and one document's root element,



<doctype<br/>
xsi:noNamespaceSchemaLocation="

xmlns:xsi="

xmlns:rdf="
3 REPLIES 3

This is a known restriction in all versions of Arbortext Editor and PE
software before 5.4. Because of the way that we built the internal data
structures for a stylesheet (which was needed for performance) we could
not use the same stylesheet for two different doctypes. This was true
for Styler stylesheets or for FOSI stylesheets.



Starting with 5.4, we changed things so we can use the same stylesheet
for two different doctypes.



John Dreystadt
Software Development Director
Arbortext - PTC
734-352-2835
-

Hi John-



You might be able to work around this by exporting the bulk of your
stylesheet as a common module, and then having two separate skeletal
stylesheets that both import the module.



--Clay


John and Clay:



Thanks for the posts. Another solution might be to create a style sheet
for a container content model which includes the doctypes already
developed. Moving to 5.4 right now is complicated.



John


Announcements

Top Tags