You are here: Re: xsltProcessor: Replacement for xslt_set_base()? « PHP Programming Language « IT news, forums, messages
Re: xsltProcessor: Replacement for xslt_set_base()?

Posted by Tony Marston on 10/21/39 11:51

<man.stick@gmail.com> wrote in message
news:1151570280.261208.185840@d56g2000cwd.googlegroups.com...
>> There is no equivalent in PHP5.
>
> OK, thanks for the clarification.
>
>> The URI of each include file may be relative
>> or absolute. It is it relative it is assumed to be relative to the base
>> document (the stylesheet).
>
> If only that were the case! As far as I can tell, for the initial XSLT
> file the path for includes is relative to the PHP script that calls it.
> However, for subsequent includes the path is relative to the including
> file.

That sounds very strange to me. I keep all my XSL stylesheets and include
files in the same directory, and each stylesheet specifies each include file
as a simple file name wihout any directory specifications, so it is always
the same directory. As my PHP script is running in a different direcory to
the XSL styesheet, the URI in the stylesheet is relative to the location of
the stylesheet, not the PHP script.

--
Tony Marston
http://www.tonymarston.net
http://www.radicore.org

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация