<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML ><HEAD ><TITLE >xslt_set_base</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="Manual PHP" HREF="index.html"><LINK REL="UP" TITLE="XSLT Functions" HREF="ref.xslt.html"><LINK REL="PREVIOUS" TITLE="xslt_process" HREF="function.xslt-process.html"><LINK REL="NEXT" TITLE="xslt_set_encoding" HREF="function.xslt-set-encoding.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=ISO-8859-2"></HEAD ><BODY CLASS="refentry" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >Manual PHP</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="function.xslt-process.html" ACCESSKEY="P" >Înapoi</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.xslt-set-encoding.html" ACCESSKEY="N" >Înainte</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><H1 ><A NAME="function.xslt-set-base" ></A >xslt_set_base</H1 ><DIV CLASS="refnamediv" ><A NAME="AEN124818" ></A ><P > (PHP 4 >= 4.0.5)</P >xslt_set_base -- Set the base URI for all XSLT transformations</DIV ><DIV CLASS="refsect1" ><A NAME="AEN124821" ></A ><H2 >Description</H2 >void <B CLASS="methodname" >xslt_set_base</B > ( resource xh, string uri)<BR ></BR ><P > Sets the base URI for all XSLT transformations, the base URI is used with Xpath instructions to resolve document() and other commands which access external resources. It is also used to resolve URIs for the <xsl:include> and <xsl:import> elements. </P ><P > As of 4.3, the default base URI is the directory of the executing script. In effect, it is the directory name value of the <TT CLASS="constant" ><B >__FILE__</B ></TT > constant. Prior to 4.3, the default base URI was less predictable. </P ><DIV CLASS="note" ><BLOCKQUOTE CLASS="note" ><P ><B >Notã: </B >Please note that <SPAN CLASS="emphasis" ><I CLASS="emphasis" >file://</I ></SPAN > is needed in front of path if you use Windows.</P ></BLOCKQUOTE ></DIV ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="function.xslt-process.html" ACCESSKEY="P" >Înapoi</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Acasã</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="function.xslt-set-encoding.html" ACCESSKEY="N" >Înainte</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >xslt_process</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="ref.xslt.html" ACCESSKEY="U" >Sus</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >xslt_set_encoding</TD ></TR ></TABLE ></DIV ></BODY ></HTML >