Forum: XML, XSLT and XPATH 21 Days Ago |
| Replies: 1 Views: 410 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 29 Days Ago |
| Replies: 17 Views: 30,645 I totally agree with sourceview
Stallman has got nothing to do with whether a distribution is good or bad. |
Forum: XML, XSLT and XPATH 29 Days Ago |
| Replies: 1 Views: 446 <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 34 Days Ago |
| Replies: 1 Views: 566 <xsl:if test="//text()[contains(., 'Sales')]">
<xsl:copy-of select="." />
</xsl:if> |
Forum: XML, XSLT and XPATH 34 Days Ago |
| Replies: 1 Views: 606 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: 719 Please provide an example so we have a clearer understanding of your question. |
Forum: XML, XSLT and XPATH Sep 9th, 2009 |
| Replies: 1 Views: 711 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: 626 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: 711 You need to use another tool besides XSLT to do it. |
Forum: XML, XSLT and XPATH Aug 25th, 2009 |
| Replies: 1 Views: 578 Unless you have a stylesheet for the XMl document, the answer is no. |
Forum: XML, XSLT and XPATH Aug 12th, 2009 |
| Replies: 1 Views: 400 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: 445 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: 735 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: 548 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: 695 No, this script cannot be converted to an ash script. |
Forum: Shell Scripting Jul 6th, 2009 |
| Replies: 2 Views: 546 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,202 ANSI is a proper subset of any of the 8851 encodings |
Forum: XML, XSLT and XPATH Jul 1st, 2009 |
| Replies: 3 Views: 655 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: 895 xml_looser your link to devshed is broken |
Forum: XML, XSLT and XPATH Jun 28th, 2009 |
| Replies: 3 Views: 655 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: 510 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: 523 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: 916 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: 760 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: 583 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: 451 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: 650 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: 432 <?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: 348 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: 906 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: 499 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: 762 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,291 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,291 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: 387 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: 811 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: 612 awk -F'[ :]' ' NF == 8 {print $4}' input.txt |
Forum: C May 20th, 2009 |
| Replies: 12 Views: 500 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,064 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: 467 The answer to all your questions is yes. But a lot of programming is required. |