:)
Hi,
I want to script for this scenerio,
OSR Settings
Scenario : We are looking to find all the *.a files from the following locations in the filesystem of a server.
OSR Directories
/etc
/bin
/usr/bin
/usr/sbin
/var/adm
These *.a files should have the permissions on... (12 Replies)
Hello
I want to compare values of two variables as CHECK condition in a while loop.
eg:
var1=0
var2=10
while
do
echo " $var1 "
var1=`expr $var1 + 1`
done
However this is giving error.How to do it in a proper manner?
Thanks. (3 Replies)
Hi,
I am in trouble. I can get inside my condition test inside a loop :
I am in ksh (solaris)
while read file
do
<commande to retrieve file> >> ${LOG_RETRIEVE_FILE.log}
msg_err=$(cat ${LOG_RETRIEVE_FILE.log} | grep "error retrieve")
if ; then
<sendmail>
exit 1
fi
done
I tried... (6 Replies)
Hello experts,
I'm stuck with this script for three days now. Here's what i need.
I need to split a large delimited (,) file into 2 files based on the value present in the last field.
Samp: Something.csv
bca,adc,asdf,123,12C
bca,adc,asdf,123,13C
def,adc,asdf,123,12A
I need this split... (6 Replies)
Hi,
I am having a file in below format
server-1 Win2008:server-1-1700,1774,290104720,290104987:server-1
server-2 AIX:server-2-:server-2 server-2
I want the output like this
Win2008:server-1-1700,1774,290104720,290104987:standalon-server
AIX:server-2-:VIO-Sever
I used the... (7 Replies)
HI,
I connected to a remote FTP server using sftp command.
Need to check if any files are present inside a folder in server directory and then remove if present.
The code should look like this
How can this condition be written.
Thanks in advance, (2 Replies)
Hi,
I Have to check two condition in while loop every 2 minutes. while loop is accompanied with number of times it will check.Please help in putting the two condition in while loop as appropriate.
z= input value,
A=1
while
do
1.check the file output,if the file output is N then keep on... (2 Replies)
Discussion started by: netdbaind
2 Replies
LEARN ABOUT PHP
xslt_set_scheme_handlers
XSLT_SET_SCHEME_HANDLERS(3) 1 XSLT_SET_SCHEME_HANDLERS(3)xslt_set_scheme_handlers - Set the scheme handlers for theXSLTprocessorSYNOPSIS
void xslt_set_scheme_handlers (resource $xh, array $handlers)
DESCRIPTION
Registers the scheme handlers (XPath handlers) for the document.
PARAMETERS
o $
xh -The XSLT processor link identifier, created with xslt_create(3).
o $handlers
- An array with the following keys: "get_all", "open", "get", "put", and "close". Every entry must be a function name or an array
in the following format: array($obj, "method"). Note that the given array does not need to contain all of the different scheme
handler elements (although it can), but it only needs to conform to the "handler" => "function" format described above. Each of
the individual scheme handler functions called are in the formats below:
string get_all(resource processor, string scheme, string rest)
resource open(resource processor, string scheme, string rest)
int get(resource processor, resource fp, string &data)
int put(resource processor, resource fp, string data)
void close(resource processor, resource fp)
RETURN VALUES
No value is returned.
EXAMPLES
Example #1
xslt_set_scheme_handlers(3) example
For example, here is an implementation of the "file_exists()" PHP function.
<?php
// Definition of the handler
function mySchemeHandler($processor, $scheme, $rest)
{
$rest = substr($rest,1); // to remove the first / automatically added by the engine
if ($scheme == 'file_exists') {
// result is embedded in a small xml string
return '<?xml version="1.0" encoding="UTF-8"?><root>' . (file_exists($rest) ? 'true' : 'false') . '</root>';
}
}
$SchemeHandlerArray = array('get_all' => 'mySchemeHandler');
// Start the engine
$params = array();
$xh = xslt_create();
xslt_set_scheme_handlers($xh, $SchemeHandlerArray);
$result = xslt_process($xh, "myFile.xml", "myFile.xsl", NULL, array(), $params);
xslt_free($xh);
echo $result;
?>
Then, inside the stylesheet, you can test whether a certain file exists with:
<xsl:if test="document('file_exists:anotherXMLfile.xml')/root='true'">
<!-- The file exist -->
</xsl:if>
SEE ALSO xslt_set_scheme_handler(3).
PHP Documentation Group XSLT_SET_SCHEME_HANDLERS(3)