1,599 Topics
| |
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 … | |
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 … | |
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 … | |
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 … | |
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? | |
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 … | |
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 … | |
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> … | |
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 | |
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 … | |
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 … | |
Hi, Is there anyone who has XML pagination example. I use simple_xml in PHP to read it. thanks | |
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 … | |
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 … | |
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 … | |
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 | |
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: … | |
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" /> … | |
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 … | |
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. … | |
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. | |
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 … | |
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 | |
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" … | |
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 … | |
What are some of the advantages of using XSLT and XPATH version 2.0 over their 1.0 predecessors? Any disadvantages? | |
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 … | |
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 … | |
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 … | |
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 … |
The End.