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

Re: xsl:include

Subject: Re: xsl:include
From: Ming Yu <my600080@xxxxxxxxx>
Date: Tue, 19 Jun 2012 08:39:04 -0700 (PDT)
Re:  xsl:include
If I only put  href="mylibrary.xsl", when I run the transformation inside my
project, it only looks under my project root directory and then generate the
following errors:

Error at xsl:include on line 145 column 44 
  XTSE0165:
java.io.FileNotFoundException: C:\eclipseworkspace\dms\mylibary.xsl


dms is
my project root. Under dms is src/main/...

All my stylesheets are
under src/main/resources/xslt. So, if I
use  href="src/main/resources/xsltmylibrary.xsl", everything works fine. But I
don't want to include the whole path relative path because I may have to
change it.

Thanks!

Ming


----- Original Message -----
From: Michel
Hendriksen <michel.hendriksen@xxxxx>
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Cc:
Sent: Tuesday, June 19, 2012 11:31 AM
Subject: Re:  xsl:include

I think
you need a resolver if you get the include from some other
place. Otherwise
the default resolver should work.

On Tue, Jun 19, 2012 at 5:28 PM, Ming Yu
<my600080@xxxxxxxxx> wrote:
> In my stylesheet, I need to use xsl:include to
include another stylesheet libraries I wrote. What's the best way to resolve
the url of the xsl:include?
>
> It seems that some people are trying to
use URIResolver. But I don't seem to be able to put the pieces together. Do I
need to write my own URIResolver? How can I call the URIResolver? Do I need to
put information in my beans.xml file?
>
> Or is it possible to include in the
java classpath?
>
> My goal is to use a url that's relative to the parent xslt
in the xsl:include.
>
> i.e. <xsl:include href="mylibrary.xsl" />. And the
mylibrary.xsl is in the same directory as the parent xslt which includes the
mylibary.xsl.
>
> Thanks a lot!
>
> Ming
>
>
--~------------------------------------------------------------------
>
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> To
unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
> or e-mail:
<mailto:xsl-list-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx>
> --~--

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.