How to ensure dependent "xsl:import() " get the right context to work? 2005-11-08 - By Christine Li
Hi, Karr
Xalan processor has it is own implementation for EXSLT date-and-time functions. If you want to use your own implementation, try to write your stylesheet (according to EXSLT):
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:date="http://exslt.org/dates-and-times" extension-element-prefixes="date">
<xsl:import href="date.xsl" />
... </xsl:stylesheet>
Hope it helps,
Christine Li XSLT Development IBM Toronto Lab Tel: (905)413-2601 Email: jycli@(protected)
"Karr, David" <david.karr@(protected)> 07/11/2005 05:57 PM
To <xalan-j-users@(protected)> cc
Subject How to ensure dependent "xsl:import()" get the right context to work?
I'm experimenting with the EXSLT, partially in Stylus Studio, and partially in standalone tests. I noticed that when I tried to test the "date:format-date()" function provided in the EXSLT implementation, it fails trying to find "str.padding.function.xsl" in the same directory as the "date.format-date.function.xsl" file.
I'm guessing there should be some way I can configure the XSLT context in some way so that this would work, unless I'm missing something. Is it assumed that EXSLT functions will do their own "xsl:import" calls for dependent functions, or should this be up to the top-level client?
<br><font size=2 face="sans-serif">Hi, Karr</font> <br> <br><font size=2 face="sans-serif">Xalan processor has it is own implementation for EXSLT date-and-time functions. If you want to use your own implementation, try to write your stylesheet (according to EXSLT):</font> <br> <br><font size=2 face="sans-serif"><xsl:stylesheet version="1.0"< /font> <br><font size=2 face="sans-serif"> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"</font> <br><font size=2 face="sans-serif"> xmlns:date="http://exslt.org/dates-and-times"</font> <br><font size=2 face="sans-serif"> extension-element-prefixes="date"></font> <br> <br><font size=2 face="sans-serif"><xsl:import href="date.xsl" /></font> <br> <br><font size=2 face="sans-serif">...</font> <br><font size=2 face="sans-serif"> </font> <br><font size=2 face="sans-serif"></xsl:stylesheet></font> <br> <br><font size=2 face="sans-serif">Hope it helps,</font> <br> <br><font size=2 face="sans-serif">Christine Li<br> XSLT Development<br> IBM Toronto Lab<br> Tel: (905)413-2601<br> Email: jycli@(protected)</font> <br> <br> <br> <table width=100%> <tr valign=top> <td width=40%><font size=1 face="sans-serif"><b>"Karr, David" <david.karr@(protected)></b> </font> <p><font size=1 face="sans-serif">07/11/2005 05:57 PM</font> <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">How to ensure dependent "xsl :import()" get the right context to work?</font></table> <br> <table> <tr valign=top> <td> <td></table> <br></table> <br> <br> <br><font size=2><tt>I'm experimenting with the EXSLT, partially in Stylus Studio, and<br> partially in standalone tests. I noticed that when I tried to test the<br> "date:format-date()" function provided in the EXSLT implementation, it<br> fails trying to find "str.padding.function.xsl" in the same directory as<br> the "date.format-date.function.xsl" file.<br> <br> I'm guessing there should be some way I can configure the XSLT context<br> in some way so that this would work, unless I'm missing something. Is<br> it assumed that EXSLT functions will do their own "xsl:import" calls for<br> dependent functions, or should this be up to the top-level client?<br> </tt></font> <br>
|
|