Skip to main content
Jan 23, 2010 7:24 PM UTC
Question

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

    Jan 25, 2010 10:44 PM UTC
    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
    -
    Jan 25, 2010 11:02 PM UTC
    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


    jsillariAuthor
    Jan 26, 2010 3:18 PM UTC
    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