Forum: XML, XSLT and XPATH 7 Days Ago |
| Replies: 1 Views: 270 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 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 <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 <xsl:if test="//text()[contains(., 'Sales')]">
<xsl:copy-of select="." />
</xsl:if> |
Forum: XML, XSLT and XPATH 20 Days Ago |
| Replies: 1 Views: 455 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 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 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 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 You need to use another tool besides XSLT to do it. |
Forum: XML, XSLT and XPATH Aug 25th, 2009 |
| Replies: 1 Views: 548 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 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 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 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 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 No, this script cannot be converted to an ash script. |
Forum: Shell Scripting Jul 6th, 2009 |
| Replies: 2 Views: 532 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 ANSI is a proper subset of any of the 8851 encodings |
Forum: XML, XSLT and XPATH Jul 1st, 2009 |
| Replies: 3 Views: 646 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 xml_looser your link to devshed is broken |
Forum: XML, XSLT and XPATH Jun 28th, 2009 |
| Replies: 3 Views: 646 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 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 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 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 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 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 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 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 <?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 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 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 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 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 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 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 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 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 awk -F'[ :]' ' NF == 8 {print $4}' input.txt |
Forum: C May 20th, 2009 |
| Replies: 12 Views: 480 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 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 The answer to all your questions is yes. But a lot of programming is required. |