Re: Resolving xsl:import href on different base URIs

"Jirka Kosek [email protected]" <[email protected]>
Newsgroups gmane.text.xml.xsl.general.mulberrytech
Message-ID <[email protected]>
On 3.11.2020 23:36, Martynas Jusevičius [email protected] 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: [email protected]      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/3329386
or by email: [email protected]
--~--
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.