1,599 Topics

Member Avatar for
Member Avatar for bigtiny

Hi all, I have a pretty specialized problem/question I think. Let me start by saying that I'm dealing with a bunch of new stuff and trying to learn as I go. I just heard of XPATH the other day, and I'm using it in a pretty restricted context (more about …

0
65
Member Avatar for nurdglaw

Hi, I'm trying to delelop a stylesheet to add some tags to the top and bottom of HTML head and body nodes. So, I've started off with a stylesheet that looks like [code] <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match="/"> <xsl:apply-templates select="html"/> </xsl:template> <xsl:template match="html"> <xsl:comment> <xsl:value-of select="' Entered …

Member Avatar for RonaldDuncan
0
82
Member Avatar for TheBrenda

I have a grid where you input the XPath to retrieve the values from an XML file. Client wants the last four of the Credit Card. I have come up with the following XPath Substring statement, but my usual XPath statements start with // and in the code I use …

Member Avatar for msbalaji
0
136
Member Avatar for Dave4U

Hi I would like to know how in XSLT to select the QTY into a variable and the use that to repeat the GIR, that number of times? e.g. if QTY 12 need to repeat GIR 12 times <QTY> <QTY01-QuantityDetails> <QTY0101-QuantityQualifier>1</QTY0101-QuantityQualifier> <QTY0102-Quantity> <xsl:value-of select="QTY"/> </QTY0102-Quantity> </QTY01-QuantityDetails> </QTY> <GIR> <GIR01-SetIdentificationQualifier/> <GIR02-IdentificationNumber>xxxx …

Member Avatar for msbalaji
0
120
Member Avatar for amerninja2

1. Can it be used in a C++ program other than with HTML? 2. Can a program communicate with a website with it? -Program update check? -Stream video/picture? -Send Text to website which is instantly displayed to users?

Member Avatar for amerninja2
0
87
Member Avatar for TheBrenda

XQuery 1.0 and XPath 2.0 have some functions listed at [URL="http://www.w3.org/TR/xpath-functions/"]http://www.w3.org/TR/xpath-functions/[/URL]. I would like to try and use one. However I have a couple of questions (1) I am not sure of the syntax. I have never seen one used in code and the listed formats seem peculiar. Does someone …

0
81
Member Avatar for duke5700

Hi all, Just a noob with an easy question :). Given this DTD [code]<!ELEMENT multimedia_format (description, examples, references)> <!ATTLIST multimedia_format name CDATA #REQUIRED> <!ELEMENT description (p+)> <!ELEMENT p ((text|em|strong|abbr|quoted_text|citation)*)> <!ELEMENT text (#PCDATA)> <!ELEMENT em (#PCDATA)> <!ELEMENT strong (#PCDATA)> <!ELEMENT abbr (#PCDATA)> <!ATTLIST abbr fulltext CDATA #REQUIRED> <!ELEMENT quoted_text (#PCDATA)> <!ATTLIST …

0
67
Member Avatar for hill258

I'm having trouble calling this template. I want to find the median "price" for all "widgets" This is as far as I've gotten: [code] <xsl:call-template name="median"> <xsl:with-param name="nodes" select="*what goes here?*"/> </xsl:call-template> [/code] My XML: [code] <widgets> <widget price="10" category="1" /> <widget price="5" category="1" /> <widget price="20" category="2" /> </widgets> …

Member Avatar for xml_looser
0
86
Member Avatar for veledrom

I return result like this. [code] $xmlDoc=simplexml_load_file("myXML.xml"); $search = $xmlDoc->xpath("/customer[@id='$ID']"); foreach ($search as $key => $customer) { echo $id = $customer["id"]; } [/code] Is there any chance to DELETE or UPDATE above particular record without creating whole XML file again like we do in database? Thanks

Member Avatar for fpmurphy
0
60
Member Avatar for Seane Argentina

Hello, I need help to parser a doc xml. I need to get the value of @show, but only on the lines with @name="wlan.seq". And after, I need to know how many times the same value of @show was repeated in the doc xml (if it was repeated). How do …

Member Avatar for fpmurphy
0
94
Member Avatar for Seane Argentina

Hello, I need help to parser a doc xml. I need to get the value of @show, but only on the lines with @name="wlan.seq". And after, I need to know how many times the same value of @show was repeated in the doc xml (if it was repeated). How do …

Member Avatar for xml_looser
0
142
Member Avatar for veledrom

Hi, Is there anyone who has XML pagination example. I use simple_xml in PHP to read it. thanks

Member Avatar for xml_looser
0
57
Member Avatar for dollycharm

7. Track number of ‘All Blues’ song on ‘Kind of Blue’ CD 8. Name of second track on ‘Cookin’ CD 9. Total cost to purchase all 3 CDs (UK prices) Please see attached file for XML.... I need to have code for XSL..... I couldn't figure out for number 7 …

Member Avatar for xml_looser
0
110
Member Avatar for dollycharm

I need some help with avg... I am attached files for xml --- I am struggling.... the question i have is : 1. What is the average speed of all the dinosaurs? A. <xsl:value-of select="format-number((sum(dinosaurs/*/speed[@units='mph'])div count(dinosaurs/*/speed[@units='mph']))"/>ft it does not work... or B. <xsl:value-of select="sum(//speed) div count(//speed)" /> or C.9. <xsl:value-of …

Member Avatar for xml_looser
0
233
Member Avatar for ftpcosta

Hello all. I am new to XSLT and I cant figure out how to solve this problem: I have a XML source document looking like this: <file> <object> <name>A</name> <type>1</type> </object> <object> <name>B</name> <type>1</type> </object> <object> <name>C</name> <type>2</type> </object> ... </file> where I only have the <type> 1 and 2 …

Member Avatar for xml_looser
0
84
Member Avatar for bhuvanwip

Hi, I want to view my xml in the Html page using stylesheet(XSL)so that it should provide me the tree view in Html. Same as what we are achieving in xml with removal of the XSL reference. Can any one provide me some guidance to achive that? Thanks Bhuvanesh

Member Avatar for xml_looser
0
46
Member Avatar for musman007

Hey all, I want to access for each coverage, for each vehicle a combined node of ABC and EFG, I wanna show. I know that I ll have to concat the values of CoverageLimit but How can I acccess two nodes at a time. Thankx in advance. Output: Vehicle 1: …

Member Avatar for xml_looser
0
86
Member Avatar for fr000nc

Hi! I'm new to the forum and to xslt. My problem is that I have to transform a cloud-like data hierarchy xml into a tree-like data hierarchy xml. Let me give you some example: input xml: [CODE] <DATA> <OBJECT id="1" class="CAR"> <ATTRIBUTE name="name" value="CITROEN CX" /> <ATTRIBUTE name="content" value="photo_link" /> …

Member Avatar for fr000nc
0
87
Member Avatar for superchris

Hi there, I'm trying to understand how XPath works, I haven't been using it for that long :) I want to be able to select all the siblings of a specified node. For example; [CODE]<folder> <page id="1" /> <page id="2" /> <page id="3" /> <folder id="4"> <page id="5" /> <page …

Member Avatar for xml_looser
0
170
Member Avatar for nikk

Hello Friends, Can you tell me the most popular commercial use of XML? I am aware that it is used to store and tranfer data between applications and systems. But, now, I'm looking for a term comprising of two words which is most popularly used in commercial application of XML. …

Member Avatar for nikk
0
93
Member Avatar for dollycharm

Using the following data, create a well-formed XML file... Please see attached file. can you help me with xml coding with that attached file? I really need it ASAP.

Member Avatar for xml_looser
0
107
Member Avatar for thebunk

I am trying to output a table which lists a customer's payments whilst keeping a running total. A section of my XML is as follows: [CODE]<Accounts> <Payment> <CustomerID>1</CustomerID> <Date>2009-03-16</Date> <Amount>22</Amount> </Payment> <Payment> <CustomerID>4</CustomerID> <Date>2009-02-12</Date> <Amount>35</Amount> </Payment> <Payment> <CustomerID>2</CustomerID> <Date>2009-05-17</Date> <Amount>41</Amount> </Payment>[/CODE] I have included the following code to sort the …

Member Avatar for xml_looser
0
134
Member Avatar for sreya.n

Hi all, How can i modify the attribute of a node using php? Eg: <node width='50'> <detail>test</detail> </node> i want to change the attribute width to 100 using the php code? Haw can i fix this? Thanx in advance

Member Avatar for GDICommander
0
60
Member Avatar for veledrom

Hi, I want to add this line [inlinecode]<user id="5" ready="No" collected="No" />[/inlinecode]in my XML document. How can i do it? After sorting this, I'll update and delete selected nodes later. I you can also helping me doing all, i would be very grateful. Javascript please. Thanks [code] <users> <user id="1" …

Member Avatar for GDICommander
0
74
Member Avatar for alpha_gear

I'm doing a project and our structure of our page should be based to a current XML. now i am having difficult to find out how to generate the simpleType SOAP value found in the XML. and XML code looks like this. ... <simpleType name="useraccount"> <xsd:restriction base="xsd:string"> <xsd:enumeration value="username"/> <xsd:enumeration …

0
62
Member Avatar for dollycharm

What are some of the advantages of using XSLT and XPATH version 2.0 over their 1.0 predecessors? Any disadvantages?

Member Avatar for fpmurphy
0
74
Member Avatar for Argo54325

Hello, i was wondering how you would go about having an RSS feed on my homepage that automatically updates when there is a new post in a certain Forum. For example: I want to have a Forum that only admins can post in, the posts in this forum are then …

0
55
Member Avatar for GRaymer

I'm running into problems with my XML format when I generate it with SQL. I'm using SQL Server 2005. I have a query that uses FOR XML PATH that will return XML for me but it does work well with the formatting. I'm not a XML guru but when I …

0
48
Member Avatar for GDICommander

Hello, everyone! I am using Xalan to parse a XML document. This is a glimpse of what I do: [CODE] std::string fileNameStr = fileName.Tofilename(); XalanDOMString strFileName(fileNameStr.c_str()); LocalFileInputSource srcFile(strFileName.c_str()); XalanDocument* document = parserLiaison.parseXMLStream(srcFile); [/CODE] What I want to do is to know the encoding of the source document. There is no …

Member Avatar for GDICommander
0
117
Member Avatar for rickya100

Hi, I was wondering if anyone out there could provide a few pointers to me on how to get started using a XML web service. It's a holiday feed so includes things like flights, bed banks etc But what I'm wondering is how do you query and get results from …

Member Avatar for mazeroth
0
110

The End.