1,599 Topics
| |
Hello, I have a large XML i am recovering data from. However,i cant seem to get more then 2 parameters out,whatever i type. i tried the following things already(without succes) -Made a substring-between -Made an extra call to a template and clarified additional parameters -Changed the values of the xpath … | |
My XML basically look something like this: [ICODE]<Staff> <Row alphakey="doejohn" building="abc" class="Algebra" /> <Row alphakey="doejohn" building="abc" class="Geometry" /> <Row alphakey="personbob" building="abc" class="Calculus" /> <Row alphakey="personbob" building="abc" class="Precalc" /> ... </Staff>[/ICODE] And my code looks a little like this: [ICODE] <xsl:for-each select="$Rows"> <xsl:if test="not(@alphakey = preceding-sibling::Rows[1]/@alphakey)"> ... [/ICODE] For some reason, … | |
My xml looks something like this: [ICODE] <Staff> <Row alphakey="doejohn" building="abc" class="Algebra" /> <Row alphakey="doejohn" building="abc" class="Geometry" /> <Row alphakey="personbob" building="abc" class="Calculus" /> <Row alphakey="personbob" building="abc" class="Precalc" /> ... </Staff> [/ICODE] And basically I need it to output like this: [ICODE]Alphakey Classes doejohn Algebra, Geometry personbob Calculus, Precalc[/ICODE] I've searched … | |
I need some help with the javascript code. I have the structure down I need help with the functions. I want to enter the temp in the box and the run the function and replace the number with the converted temperature. Can anyone help me. Here is where I'm at … | |
My XML class is kickin my behind. I have an assignment that is to combine 3 files, books, movies and music into one called products. I have xml and xsd doc for each. I have gone over the book and a fellow students work and the solution files. I cannot … | |
I am trying to get xsl comments on my XMLSpy XSLT output console, but the comment is not appearing. My xslt script is: [CODE] <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.opentravel.org/OTA/2003/05" xmlns:ota="http://www.opentravel.org/OTA/2003/05" exclude-result-prefixes="ota xsl"> <xsl:output encoding="UTF-8" version="2.0" method="xml"/> <xsl:strip-space elements="*"/> <xsl:variable name="no_of_adult_persons" select="count(//ota:PassengerListItems/ota:PassengerListItem[@Code = '10'])"/> <xsl:variable name="adult_persons_prices"> <xsl:call-template name="adult"> <xsl:with-param … | |
Hi! I want to parse data from tables in webpages , there are no problems when I parse regular HTML tables, but it seems to be impossible to get any data from dynamic pages that update themself automatically. Do you have any clue how to extract data from dynamic web … | |
I'm using ASP to dynamically generate an XML file (for an RSS feed) that pulls information from a SQL DB. Users input the data into the DB using a UI that is a straightforward html form. However, there is a textarea field in that form in which most users seem … | |
[CODE]Validating against schema: Employee.xsd Error: Element 'Phone': The attribute 'Type' is not allowed. on line 9 Line 1 <?xml version="1.0"?> 2 <?xml-stylesheet href="http://courses.oreillyschool.com/introxml/xsl/PhoneBook.xsl" type="text/xsl"?> 3 <!DOCTYPE Employees> 4 <Employees xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Employee.xsd"> 5 <Employee> 6 <First>John</First> 7 <Last>Smith</Last> 8 <Phone Type="Home">1-800-123-4567</Phone> 9 <Birthday>1960-05-25</Birthday> 10 <HourlyRate>35.85</HourlyRate> 11 </Employee> 12 </Employees> 13 [/CODE] … | |
Say I have an element <pets animals="dogs, cats, donkey, turtle, rabbit" /> How can I break the long string to when it hits the comma, it separates the animals into substrings? An example output is shown below: dogs cats donkey turtle rabbit Help is appreciated. Thanks | |
Hi i have a while loop which displaying data from the database but i am trying to style but it doesnt seem to be workin help please. xml script [CODE]<?php // PHP file that renders perfect Dynamic XML for MySQL Database result sets // Script written by Adam Khoury @ … | |
Hi there, I'll be dropping in quick: I'm trying to pull four <t> nodes from a XML file, eg. [CODE='XML']<?xml version="1.0" encoding="UTF-8"?> <tasks tid="TERMINAL012345"> <t> <reqs>keuringen/bammens3h.xml</reqs> <deadline>200120111600</deadline> <desc>WML keuring BAMMENS-3H</desc> <loc>Danzigerbocht 87 AMSTERDAM</loc> <ocode>TEST1234567890</ocode> <form>quiz</form> <sn>0000000001</sn> </t> <t> <reqs></reqs> <deadline>200120111630</deadline> <desc>Vulgraad meting</desc> <loc>Danzigerbocht 87 AMSTERDAM</loc> <ocode>TEST1234567890</ocode> <form>quiz</form> <sn>0000000002</sn> </t> <t> … | |
Hi I am new to xslt and i was trying to generate a generic xml from the plmxml. Following is the plmxml.xml file [code] <?xml version="1.0" encoding="utf-8"?> <PLMXML xmlns="http://www.plmxml.org/Schemas/PLMXMLSchema" schemaVersion="6" date="2008-12-02" time="15:33:22" author="Teamcenter V2007.1.3.20080417.00 - PLM@TCLICSRV(498908465)"> <Product id="id2" name="Test" accessRefs="#id3" subType="Item" productId="000019"></Product> </PLMXML> [/code] ------------------------------------------------------- And in the output i … | |
Say I have an XML file as such: <contacts> <contact id="1"> <name>Steven</name> <address>Here</address> <phone>11111111</phone> </contact> <contact id="2"> <name>John</name> <address>There</address> <phone>22222222</phone> </contact> </contacts> ...etc. How can I transform that to HTML with XSLT so that it can be a collapsable/expandable tree? For example, If I click a button that shows contact{@id="1"] … | |
<comment> <content> This is a really long string. It is really long because it contains plenty of characters. The purpose of this exercise is to separate this content element into blocks containing one hundred each </content> </comment> I have the XML file above and I need to use XSLT to … | |
Hi all, I am in fruit industry and dealing with stock inventory of fruits. I got 2 files, one file got fruit names (fruit.txt) and other file got the inventory status (status.txt). Task for me was to check the fruit list and update the inventory status: Contents of the files: … | |
I'm working on scraping HTML pages and transforming the selected content from them into XML and I've been seeing a few errors here and there thrown by the Saxon XSLT parser: WARN [2011-01-07 14:44:35 EST] (SaxonTranslator#429473) improper java log: XPTY0004: A sequence of more than one item is not allowed … | |
Hello , um using xpath into jsp . According to what I know that the following : [CODE]<xpath:set var="channel_name" select="channelName" />[/CODE] returns a string . Let's assume that the value of this string is "foo" I need to compare this string with other string !! like if (var1=="foo") then do … | |
Hello All, This is the first time I am using XSLT transform to transform an XML file.However, I am using a large XSLT(~2000 lines) written by someone else for the purpose of transformation.When I try to use XslCompiledTransform I get an error:The variable or parameter 'resourcetitle' is either not defined … | |
I am developing my knowledge base files these days and also I am trying to make an interface to update the templates in the knowledge base. Say I have the following AIML file. [code] <?xml version=“1.0” encoding=“ISO-8859-1”?> <aiml version=“1.0”> <category> <pattern> WHERE</pattern> <template>Where the heart is.</template> </category> <category> <category> <pattern>Hi</pattern> … | |
[B]Hi i am reciving XML File and trying to send a rspone to it my code is:[/B] [CODE] string sProcess = ""; XmlDocument objXML = new XmlDocument(); DateTime NowD = DateTime.Now; String DateD = NowD.ToString("yyyy-MM-ddThhmmss"); try { sProcess = "Load XML"; objXML.Load(Page.Request.InputStream); objXML.Save(@"D:\Payment-" + DateD + ".xml"); objXML.Load(Request.InputStream); XmlNode rootNode … | |
Hi all, I want to transform an xml file to another xml file based on the length of innertext in an element. Here is an example of the file to be transformed: [CODE] <?xml version="1.0" encoding="utf-8"?> <recipe xmnls=""> <recipeList> <recipeType description="Breakfast"> <recipeInfo> <name>Omelet</name> <summary>An English Breakfast</summary> <ingredients>Eggs,Butter</ingredients> <instructions>(1) You will … | |
hey guys! how can I read strings from a file? Like... They will compose part of the interface... something like, read a string from a file, then this string points to a image that will be used in a picture box, as same as a label that will be shown … | |
Hi all, I have a textblock that is bound to an xml document. This displays the innertext of an xml-node element and the width of the textblock is fixed at "auto". The issue is that of the display as the innertext may exceed the width of the textblock and therefore … | |
How will I parse this XML using jQuery? <item> <station></station> <headline><![CDATA[]]></headline> <showDate>12/28/2010</showDate> <showTime></showTime> <doorsOpen></doorsOpen> <buylink></buylink> <description><![CDATA[]]></description> <pubDate>Mon, 27 Dec 2010 10:48:28 PST</pubDate> </item> I have to display month and date separately.. | |
Having a problem that I cannot seem to get over. Simply trying to do a post of an xml string to a web site. Seems to work fine, until I hit a certain size of the string, then it fails. I have searched for other methods, but am coming up … | |
Hello everyone, I'm _very_ new to xml, especially converting using an xslt. Here's my source XML generated by Eeye Retina. This data is being used by MS Access and I don't need all the data from the original XML. When I try to run the MS Access app I get … | |
I have an xhtml document that contains many lines that look like: <div style="position:absolute;top:224;left:108">The line was longer than we expected</div> For my first trick I need to be able to match or select this node and others like it, where like it means that it is a div tag with … | |
Hi, For example my xml looks like this: [code] <root> <Book_information> <bookTitle>Lorem 1</bookTitle> <choices>test1</choices> <choices>test2</choices> <choices>test3</choices> <choices>test4</choices> <choices>test5</choices> <choices>test6</choices> <calendar>2010-12-30</calendar> <calendar>2011-01-12</calendar> <calendar>2011-03-10</calendar> </Book_information> </root> [/code] I need to loop the elements "Choices"... How can i do this? I know how to work with the for each loop, but i don't … | |
Hi, I'm making a website and I wanted to incorporate a 'News' page. As I'll display some of the news topics elsewhere (in home page), I wanted to make each of the topics in XML. I have the XML document, and tried using XSLT to parse the XML into XHTML … |
The End.