Search Results

Showing results 1 to 40 of 95
Search took 0.01 seconds.
Search: Posts Made By: fpmurphy
Forum: XML, XSLT and XPATH 7 Days Ago
Replies: 1
Views: 270
Posted By fpmurphy
As far as I know you cannot use an XPath expression to do what you want to do.

Here is how I get the result you are looking for

<?xml version="1.0"?>
<xsl:stylesheet version="1.0"...
Forum: Linux Servers and Apache 15 Days Ago
Replies: 16
Views: 26,592
Posted By fpmurphy
I totally agree with sourceview

Stallman has got nothing to do with whether a distribution is good or bad.
Forum: XML, XSLT and XPATH 15 Days Ago
Replies: 1
Views: 293
Posted By fpmurphy
<xsl:variable name="dummy" select= "/ArrayOfBookMark/BookMark[ShortName='Asp-7042-EndVar1']/Value" />
<xsl:variable name="dummy1">
<xsl:choose>
<xsl:when test="$dummy !=...
Forum: XML, XSLT and XPATH 20 Days Ago
Replies: 1
Views: 432
Posted By fpmurphy
<xsl:if test="//text()[contains(., 'Sales')]">
<xsl:copy-of select="." />
</xsl:if>
Forum: XML, XSLT and XPATH 20 Days Ago
Replies: 1
Views: 455
Posted By fpmurphy
f you can specify the transformation you want to implement, then we can help you turn this specification into XSLT code. If you can't specify the transformation, then your problem is not an XSLT...
Forum: XML, XSLT and XPATH Sep 23rd, 2009
Replies: 1
Views: 579
Posted By fpmurphy
Please provide an example so we have a clearer understanding of your question.
Forum: XML, XSLT and XPATH Sep 9th, 2009
Replies: 1
Views: 627
Posted By fpmurphy
Here is a stylesheet which will do what you want

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<!-- pass in as -param uid "'value'" ...
Forum: XML, XSLT and XPATH Sep 6th, 2009
Replies: 1
Views: 565
Posted By fpmurphy
Assuming the following example HTML file as input

<html>
<head></head>
<body>
<td align="left" style="background-color:#648190;"><span...
Forum: XML, XSLT and XPATH Aug 25th, 2009
Replies: 1
Views: 639
Posted By fpmurphy
You need to use another tool besides XSLT to do it.
Forum: XML, XSLT and XPATH Aug 25th, 2009
Replies: 1
Views: 548
Posted By fpmurphy
Unless you have a stylesheet for the XMl document, the answer is no.
Forum: XML, XSLT and XPATH Aug 12th, 2009
Replies: 1
Views: 384
Posted By fpmurphy
Is it somewhat long-winded to do using XSLT. If you want to go this route, see Pg 67 of Jenni Tennison excellent book "XSLT and XPath on the Edge". It discusses this topic in depth.
Forum: XML, XSLT and XPATH Jul 20th, 2009
Replies: 2
Views: 433
Posted By fpmurphy
I can't see any # or &s in your code. If you have any in your variables you probably need to guard these variables using ![CDATA[...]]
Forum: XML, XSLT and XPATH Jul 20th, 2009
Replies: 5
Views: 696
Posted By fpmurphy
What do you mean? How are you using your browser to get the count. Can you show us your stylesheet?
Forum: XML, XSLT and XPATH Jul 14th, 2009
Replies: 3
Views: 511
Posted By fpmurphy
Yes, multiple precidates are permitted in a step. In your example you have two adjacant predicates.

From XPath 2.0 3.2.1
A step is a part of a path expression that generates a sequence of items...
Forum: Shell Scripting Jul 7th, 2009
Replies: 5
Views: 676
Posted By fpmurphy
No, this script cannot be converted to an ash script.
Forum: Shell Scripting Jul 6th, 2009
Replies: 2
Views: 532
Posted By fpmurphy
Your problem is here

sed -n "s/<idle>600<\/idle>/<idle>900<\/idle>/p" $f >> $f

You need to use either the -i option to GNU sed to permit in place editing or save the output to a temporary file...
Forum: XML, XSLT and XPATH Jul 5th, 2009
Replies: 4
Views: 1,119
Posted By fpmurphy
ANSI is a proper subset of any of the 8851 encodings
Forum: XML, XSLT and XPATH Jul 1st, 2009
Replies: 3
Views: 646
Posted By fpmurphy
Sorry that I was not clearer. I should have added "It is possble however to include these characters if you guard them with <![CDATA[ ... ]]. "

As I understand it, the OP wants to know how to...
Forum: XML, XSLT and XPATH Jul 1st, 2009
Replies: 3
Views: 841
Posted By fpmurphy
xml_looser your link to devshed is broken
Forum: XML, XSLT and XPATH Jun 28th, 2009
Replies: 3
Views: 646
Posted By fpmurphy
What you want to do is not supported by XSL because including these characters in your XML document renders the XML document invalid.
Forum: XML, XSLT and XPATH Jun 25th, 2009
Replies: 3
Views: 499
Posted By fpmurphy
Th output that you request is not a valid XML document i.e.

<?xml version="1.0" encoding="UTF-8"?>
<index>
<title>title 1</title>
<sub>
<subtitle>subtitle1</subtitle>
...
Forum: XML, XSLT and XPATH Jun 23rd, 2009
Replies: 2
Views: 516
Posted By fpmurphy
What encoding did you declare for the source document? It should be something like

<?xml version="1.0" encoding="iso-8859-1"?>
Forum: XML, XSLT and XPATH Jun 23rd, 2009
Replies: 3
Views: 868
Posted By fpmurphy
Masterkey is correct.

Here is a similar xml document to the OPs but modified to differentiate the nodes.

<AAA>
<BBB/>
<CCC/>
<DDD>
<AAA/>
<BBB/>
Forum: XML, XSLT and XPATH Jun 22nd, 2009
Replies: 2
Views: 713
Posted By fpmurphy
One way would be to extract the CDATA first

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:output method="text" />

<xsl:template...
Forum: XML, XSLT and XPATH Jun 22nd, 2009
Replies: 5
Views: 571
Posted By fpmurphy
Here is one way of doing it

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:output method="xml" omit-xml-declaration="yes" />
...
Forum: XML, XSLT and XPATH Jun 22nd, 2009
Replies: 1
Views: 446
Posted By fpmurphy
Suppose you have the following XML document

<requests>
<request code="10" type="2"/>
</requests>

The following XSL

<?xml version="1.0"?>
<xsl:stylesheet version="1.0"...
Forum: XML, XSLT and XPATH Jun 17th, 2009
Replies: 3
Views: 634
Posted By fpmurphy
There is no such thing as an XSLT oneliner :-)

This should work for you however

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
...
Forum: XML, XSLT and XPATH Jun 17th, 2009
Replies: 1
Views: 421
Posted By fpmurphy
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:output method="xml" omit-xml-declaration="yes"/>

<xsl:template name="split">
...
Forum: C++ Jun 2nd, 2009
Replies: 2
Views: 335
Posted By fpmurphy
Go the pthread_cancel()/pthread_cleanup_pop() route. It is the easiest.
And use pthread_setcancelstate() etc. to control cancelability so that you only cancel at known points to make cleanup easier.
Forum: Shell Scripting May 30th, 2009
Replies: 3
Views: 867
Posted By fpmurphy
I suggest you start top in batch mode and with the number of iterations set to 1. This way you take a a quick snapshot of things and save it to a file.
Forum: C May 30th, 2009
Replies: 2
Views: 453
Posted By fpmurphy
Here you are allocating memory

char* str1 =(char *) malloc(80*sizeof(char));

but this memory has not been initialized to zero by malloc

The following may or may not fail because the...
Forum: XML, XSLT and XPATH May 26th, 2009
Replies: 1
Views: 732
Posted By fpmurphy
Well, both are well formed XML documents. You probably should file a bug with the FF folks.
Forum: C May 26th, 2009
Replies: 5
Views: 1,221
Posted By fpmurphy
I am confused. First you say you want to write the program. Then you say you want somebody to send the code for such a program to you.
Forum: C May 26th, 2009
Replies: 5
Views: 1,221
Posted By fpmurphy
Here is a java applet. http://media.pearsoncmg.com/aw/aw_kurose_network_2/applets/csmacd/csmacd.html
Forum: XML, XSLT and XPATH May 22nd, 2009
Replies: 1
Views: 377
Posted By fpmurphy
As is, you cannot. First of all you need to convert your data in an XML format. Then perhaps we can help you.
Forum: Shell Scripting May 20th, 2009
Replies: 5
Views: 787
Posted By fpmurphy
One way is to use an ed script. For example

$ cat ed.script
/ssl-qop-mgmt-default/a
default = DES-168
default = RC2-128
default = RC4-128
#default = ALL
.
+1d
Forum: Shell Scripting May 20th, 2009
Replies: 1
Views: 573
Posted By fpmurphy
awk -F'[ :]' ' NF == 8 {print $4}' input.txt
Forum: C May 20th, 2009
Replies: 12
Views: 480
Posted By fpmurphy
The problem is with the line

path = "ragHu";


It should be replaced with the following

strcpy(path, "ragHu");
Forum: XML, XSLT and XPATH May 8th, 2009
Replies: 2
Views: 1,028
Posted By fpmurphy
Your syntax looks to be OK. The path to the matches node is probably incorrect.
Forum: XML, XSLT and XPATH Apr 29th, 2009
Replies: 2
Views: 450
Posted By fpmurphy
The answer to all your questions is yes. But a lot of programming is required.
Showing results 1 to 40 of 95

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC