Skip to main content
1-Visitor
January 23, 2010
Question

Sharing Styler Stylesheets across Multiple Doctypes

  • January 23, 2010
  • 3 replies
  • 1162 views
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

    January 25, 2010
    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
    -
    18-Opal
    January 25, 2010
    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


    jsillari1-VisitorAuthor
    1-Visitor
    January 26, 2010
    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