xsl-list
[Top] [All Lists]

[xsl] Dynamic DTD declaration in output

2019-05-15 00:44:52
Hi

 

I've got a simple stylesheet which is executed as a pre-process when XML
documents are loaded into FrameMaker. At the moment the stylesheet includes
the line

 

    <xsl:output doctype-system="/path/to/docs.dtd" method="xml"
encoding="UTF-8" />

 

Because this stylesheet will be used by different users in several different
contexts, it would be brilliant if the path to the DTD could be
parameterised. I know the following is invalid but the purpose of this post
is to ask if there is any way of engineering an equivalent:

 

    <xsl:param name="DefaultDTDPath" />

    <xsl:output doctype-system="{$DefaultDTDPath}" method="xml"
encoding="UTF-8" />

 

XSL version has to be 1.0 or 2.0.

 

Thanks

T

 
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--
<Prev in Thread] Current Thread [Next in Thread>