xsl-list
[Top] [All Lists]

Re: [xsl] Resolving xsl:import href on different base URIs

2020-11-04 05:20:01
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
--~--

<Prev in Thread] Current Thread [Next in Thread>