[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Resolving xsl:import href on different base URIs

Subject: Re: Resolving xsl:import href on different base URIs
From: "Jirka Kosek jirka@xxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 4 Nov 2020 11:19:54 -0000
Re:  Resolving xsl:import href on different base URIs
On 3.11.2020 23:36, Martynas JuseviD
ius martynas@xxxxxxxxxxxxx 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@xxxxxxxx      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
------------------------------------------------------------------

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.