- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Re:
hi i have my xml code below: [CODE]<?xml-stylesheet type="text/xsl" href="book.xsl" version="1.0"?> <books xmlns:xsd = "http://www.w3.org/2001/XMLSchema-instance" xsd:noNamespaceSchemaLocation = "book.xsd"> <book id="001"> <isbn>0465044050</isbn> <title>Birth of the Mind</title> <author> <firstname>Gary</firstname> <lastname>Marcus</lastname> </author> <publisher>Basic Books</publisher> <year>2004</year> <price>17.68</price> <picture>0465044050.gif</picture> <description>write your desc.</description> </book> </books> [/CODE] and here my xsl code: [CODE]<?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0" … |
|
Re:
Please help me in finding the xpath for these nodes [CODE]<IPAddses> <IPAddss><ix>0</ix><addss >124.123.123.330</addss ><desc /></IPAddss> <IPAddss><ix>1</ix><addss >124.123.123.331</addss ><desc /></IPAddss> <IPAddss><ix>2</ix><addss >124.123.123.332</addss ><desc /></IPAddss> <IPAddss><ix>3</ix><addss >124.123.123.333</addss ><desc /></IPAddss> <IPAddss><ix>4</ix><addss >124.123.123.334</addss ><desc /></IPAddss> <IPAddss><ix>5</ix><addss >124.123.123.335</addss ><desc /></IPAddss> <IPAddss><ix>6</ix><addss >124.123.123.336</addss ><desc /></IPAddss> <IPAddss><ix>7</ix><addss >124.123.123.337</addss ><desc /></IPAddss> <IPAddss><ix>8</ix><addss >124.123.123.338</addss ><desc /></IPAddss> <IPAddss><ix>9</ix><addss >124.123.123.339</addss ><desc … |
|
Re:
1. I want to take unique district values from the below xml. How to do it in XPATH? 2. I want to take unique taluk values and district name="xyz". what is the xpath expression? XML structure: <?xml version="1.0" encoding="utf-8"?> <imageData> <row> <slno>1</slno> <sitecode>001</sitecode> <sitename>Mel Sittamur</sitename> <photono>001_001_001.jpg</photono> <photodate>07-09-2008</photodate> <district>Villupuram</district> <taluk>Senji</taluk> <monument><![CDATA[Jain … |
|
Re:
hi, i have a question in XPATH. i am reading from XML file and i would like to know how can i extract a name from this line: <Name><![CDATAEdi></Name> lets say i want to get Dani? my c# query is like this: strExpression = "A/B/C/D"; and i also would like … |
|
Re:
Hello, I need to return the areas connected with the town placeid attribute of an XML document. The town placeid is a variable equal to a current page variable $x. e.g. xpath("/country/city/town[@placeid=$x]"); How can I return the areas for each using simpleXML/XPATH? <country> <city> <town placeid="" /> <areas> <area>A</area> <area>B</area> … |
|
Re:
Write the XSLT that does the reverse of the XSLT(below), i.e. it converts the attributes in Personsout.xml into elements. (<xsl:copy> should be used for this as well ) Can someone help me how to do this.am still a beginner. Personsout.xml [CODE] <?xml version=”1.0” encoding=”UTF-8”?> <Persons> <Person FirstName=”Jill” LastName=”Harper”/> <Person FirstName=”Claire” … |
|
Re:
Hi all, I've got my xml displaying correctly using php and the xsl template below, but I only want to display properties with a type of either apartment or unit, and have more than 2 bedrooms. I can't for the life of me work this out. I've tried using <xsl:choose>, … |
|
Re:
Hi all, I'm having trouble coming up with the correct XSLT code and was wondering if anyone could point me in the right direction. This is what I need to do... I've got an xml tree with pages like so: [CODE] <page> <title>A<title> <subtitle>I</subtitle> <item>1</item> </page> <page> <title>D<title> <subtitle>V</subtitle> <item>7</item> … |
|
Re:
Hi All, I have a xml something like this [CODE]<addres> <country>xxxx</country> <city>xxxx</city> <name>xxxxxxxx</name> <street>xxxxxxx</street> <!-- like this n number of element can come --> </addres>[/CODE] Out of those all tag any of tag e.g. <name> I don't want to produce in out put xml for exp. output should be like … |
|
Re:
I am new to XSLT and am trying to solve the following transformation. I have an XML that looks like this... [CODE]<Groups> <Group> <GroupSelector>52</GroupSelector> <GroupDescription>Group 52</GroupDescription> <GroupValue>ABCD</GroupValue> </Group> <Group> <GroupSelector>27</GroupSelector> <GroupDescription>Group 27</GroupDescription> <GroupValue>PQRS</GroupValue> </Group> <Group> <GroupSelector>20</GroupSelector> <GroupDescription>Group 20</GroupDescription> <GroupValue>XYZA</GroupValue> </Group> <Group> <GroupSelector>15</GroupSelector> <GroupDescription>Group 15</GroupDescription> <GroupValue>MNOP</GroupValue> </Group> </Groups> [/CODE]There may be … |
|
Re:
The below xpath condition will give both the card numbers as output. How can I modify this to get the first cardnumber alone. xml attached /*/*/*/*/*/*[local-name()='cardNO'] |
|
Re:
Hi, I'm new to these forums and have been working with xslt for about a month. So far I've been able to do just about everything I need with it, but my most recent task has me confused. I have a relatively flat xml structure that I'm using XSLT to … |
|
Re:
Hi guys, keep getting an error: Cannot find the deceleration of element test when writing the xml. I have declared the element test in the schema but it appears to ignore it. The schema is as follows: [CODE]<?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="Test"/> <xs:simpleType name="Stringtype"> <xs:restriction base="xs:string"/> </xs:simpleType> <xs:simpleType … |
|
Re:
Hi, I have an XPATH expression which works in Firefox but not IE8. "//country/region[text()="London"]/../timeZone" The error message I get from IE8 is " Message: .. may not appear to the right of / or // or be used with |." Thanks, Redrose123 |
|
|
Re:
Hello, I'm new to XSLT and have a basic (probably) question. Instead of transforming from one xml format to another I would like to just modify data in a single xml document. How would one go about that? Regards, Rupert |
Re:
HI guys, i have split and xml in two parts, and in the root element element of the second one(which in this case is the output) want to add an attribute...but do not have any idea how to do this... my XML:[CODE]<DataSet> <Input> <Order OrderNo="tesco10" DocumentTYpe="0001"/> </Input> <Output> <Order OrderNo="Order1" … |
|
Re:
Below is an xpath that works. It returns all the values of the [U][B]value[/B][/U] attribute of the OutputField tag: [CODE] //Satellite/multidataset/file[contains(@name, '311multi')]/Data/DriftAnalysis[contains(@name, '311')]/Metric[@name='Detail' and @type='Overlap']/Element[@metrictype='Overlap']/OutputField[@name='Cleared']/@value [/CODE] But when I try to sum the returned values of the [U][B]value[/B][/U] attribute like the example below I get the error "Expression must evaluate … |
|
Re:
Hi, i need help with xsl document. I want to create xsl document, where header of invoice will be join items of invoice. In my document is separated and i don´t know how to do it. For example, i want that number of proof has items and then continue with … |
|
Re:
Hello, I am trying to validate a response from a webservice that contains 3 tables with the same name: [CODE] ... <SUBTABLE3> content </SUBTABLE3> ... <SUBTABLE3> content </SUBTABLE3> ... <SUBTABLE3> content </SUBTABLE3> ... [/CODE] I am using the example on: [url]http://www.soapui.org/Functional-Testing/xpath-and-xquery-assertions.html[/url] The problem, the way I see it is when … |
|
Re:
Hi All I am new to XSLT development and have stuck at simple but essential point. I want to remove the content which is in between two specific comment tag <!--E-->Text which need to remove<!--/E--> I do try with the given below code [CODE]<xsl:template match="comment()"> <xsl:text disable-output-escaping="yes"><</xsl:text><xsl:value-of select="."><xsl:text disable-output-escaping="yes">></xsl:text> </xsl:template> … |
|
Re:
Hi peoples, Suppose I have an XML file [CODE] <Application> <Segment1> <ID>Sam</ID> <Fee>2.50</Fee> <Fee>1.00</Fee> </Segment1> </Application> [/CODE] In a nutshell, I want to move the two <Fee> Elements to another section so it looks like this; [CODE] <Application> <Segment1> <ID>Sam</ID> </Segment1> <Segment2> <Fee>2.50</Fee> <Fee>1.00</Fee> </Segment2> </Application> [/CODE] It would invlove … |
|
Re:
Hi, I need to concatenate 3 strings to make URL dynamically. [CODE] <xsl:variable name="userurl"> <xsl:choose> <xsl:when test="currentUser/first != ''"> <xsl:value-of select="currentUser/first"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="currentUser/userid"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="url"> <xsl:value-of select="concat('http://localhost:8080/xsl-portal/site/~',$userurl,'/page/487d2e0a-ca50-440b-a8c2-e98a2cee632c')"/> </xsl:variable> <xsl:text>|</xsl:text> <a href="{$url}" target="_blank"> <xsl:text>Search</xsl:text> </a> [/CODE] Here i am not able to get the link, The … |
|
Re:
How to find errors in a given xml file, for e.g., in the following xml file.... <?xml version="1.0" encoding="ISO-8859-1"?> <bookstore> <book category="cooking"> <title lang="en">Everyday Italian</title> <author>Giada De Laurentiis</author> <year>2005</year> <price>30.00</price> </book> <book category="children"> <title lang="en">Harry Potter</title> <author>J K. Rowling</author> <year>2005</year> <price>29.99</price> </book> <book category="web"> <title lang="en">XQuery Kick Start</title> <author>James McGovern</author> … |
|
Re:
I have the following code in my xsl file... [code]<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> <!ENTITY copy "©"> <!ENTITY reg "®"> <!ENTITY trade "™"> <!ENTITY mdash "—"> <!ENTITY ldquo "“"> <!ENTITY rdquo "”"> <!ENTITY pound "£"> <!ENTITY yen "¥"> <!ENTITY euro "€"> <!ENTITY amp "&"> ]> <xsl:stylesheet … |
|
Re:
Hi, I am trying to get a Javascript working in an XSL document and i can't seem to make it work for some reason. I have placed the following code within the head of my document. [CODE] <msxsl:script language="JScript" implements-prefix="user"> <![CDATA[ function popup(mylink, windowname) { if (! window.focus)return true; var … |