  | |  | URIResolvers base parameter with xsltc and cascaded imports | URIResolvers base parameter with xsltc and cascaded imports 2006-08-14 - By Yash Talwar
Hi Holger, I will look into this and reply back.
Thanks!
Yash Talwar
Holger Dehnhardt <dehnhardt@(protected)> 14/08/2006 09:28 AM Please respond to dehnhardt
To xalan-j-users@(protected) cc
Subject Re: URIResolvers base parameter with xsltc and cascaded imports
Hello! Sorry for asking again, but I really need some advice with the problem described below. Is anyone here who has written an URIResolver or can help in any way, or should I ask on the developers list?
Thanks Holger
Am Montag, 24. Juli 2006 17:26 schrieb Holger Dehnhardt: > Hello, > > I'm trying to write my own URIResolver to keep track of changes in imported > stylesheets when compiling the main stylesheet. > Lets have this layout > > 1) http://localhost/main.xsl includes layouts/heads.xsl > 2) heads.xsl includes ../helpers/someFunctions.xsl > 3) http://localhost/main.xsl includes layouts/footers.xsl > > The interface method "resolve" in my uri-resolver is called three times > with the following parameters: > > 1) href=layouts/heads.xsl base=http://localhost/main.xsl > 2) href=../helpers/someFunctions.xsl base=http://localhost/main.xsl > 3) href=layouts/footers.xsl base=http://localhost/main.xsl > > even if the file is included from another stylesheet like 2), the base does > not change. > Storing the base is no solution, > in 1) the base would be http://localhost/layouts/heads.xsl > but in 2) it would be http://localhost/helpers/someFunctions.xsl > and 3) would fail. > > Is this expected behaviour and if so, how can I manually keep track of the > base? > > Thanks Holger
<br><font size=2 face="sans-serif">Hi Holger,</font> <br><font size=2 face="sans-serif">I will look into this and reply back.</font> <br> <br><font size=2 face="sans-serif">Thanks!</font> <br> <br><font size=2 face="sans-serif"><br> Yash Talwar<br> </font> <br> <br> <br> <table width=100%> <tr valign=top> <td width=40%><font size=1 face="sans-serif"><b>Holger Dehnhardt <dehnhardt @(protected)></b> </font> <p><font size=1 face="sans-serif">14/08/2006 09:28 AM</font> <table border> <tr valign=top> <td bgcolor=white> <div align=center><font size=1 face="sans-serif">Please respond to<br> dehnhardt</font></div></table> <br> <td width=59%> <table width=100%> <tr> <td> <div align=right><font size=1 face="sans-serif">To</font></div> <td valign=top><font size=1 face="sans-serif">xalan-j-users@(protected)< /font> <tr> <td> <div align=right><font size=1 face="sans-serif">cc</font></div> <td valign=top> <tr> <td> <div align=right><font size=1 face="sans-serif">Subject</font></div> <td valign=top><font size=1 face="sans-serif">Re: URIResolvers base parameter with xsltc and cascaded imports</font></table> <br> <table> <tr valign=top> <td> <td></table> <br></table> <br> <br> <br><tt><font size=2>Hello!<br> Sorry for asking again, but I really need some advice with the problem <br> described below.<br> Is anyone here who has written an URIResolver or can help in any way, or <br> should I ask on the developers list?<br> <br> Thanks Holger<br> <br> Am Montag, 24. Juli 2006 17:26 schrieb Holger Dehnhardt:<br> > Hello,<br> ><br> > I'm trying to write my own URIResolver to keep track of changes in imported<br> > stylesheets when compiling the main stylesheet.<br> > Lets have this layout<br> ><br> > 1) http://localhost/main.xsl includes layouts/heads.xsl<br> > 2) heads.xsl includes ../helpers/someFunctions.xsl<br> > 3) http://localhost/main.xsl includes layouts/footers.xsl<br> ><br> > The interface method "resolve" in my uri-resolver is called three times<br> > with the following parameters:<br> ><br> > 1) href=layouts/heads.xsl base=http://localhost/main.xsl<br> > 2) href=../helpers/someFunctions.xsl base=http://localhost/main.xsl<br> > 3) href=layouts/footers.xsl base=http://localhost/main.xsl<br> ><br> > even if the file is included from another stylesheet like 2), the base does<br> > not change.<br> > Storing the base is no solution,<br> > in 1) the base would be http://localhost/layouts/heads.xsl<br> > but in 2) it would be http://localhost/helpers/someFunctions.xsl<br> > and 3) would fail.<br> ><br> > Is this expected behaviour and if so, how can I manually keep track of the<br> > base?<br> ><br> > Thanks Holger<br> </font></tt> <br>
|
|
 |