On 3.11.2020 23:36, Martynas Jusevičius martynas(_at_)atomgraph(_dot_)com wrote:
The rest is identical. I'd like to avoid having to duplicate
stylesheets just because of this URI difference.
Is there some clever URI resolution trick I'm not seeing, or some XSLT
3.0 static features that can help here? Or should I just do some good
old pre-processing with bash or something like that.
You can use XML Catalogs to redirect URLs to proper location:
Assuming that you are using Saxon, look at:
https://www.saxonica.com/html/documentation/sourcedocs/xml-catalogs.html
--
------------------------------------------------------------------
Jirka Kosek e-mail: jirka(_at_)kosek(_dot_)cz http://xmlguru.cz
------------------------------------------------------------------
Professional XML and Web consulting and training services
DocBook/DITA customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
Bringing you XML Prague conference http://xmlprague.cz
------------------------------------------------------------------
--~----------------------------------------------------------------
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
--~--