1,599 Topics

Member Avatar for
Member Avatar for sureshchinta

I have the following xml file and wanted to generate another xml file. While using the xml:element to create elements on the fly, the xslt debugger is throwing an error saying expected Qname. How can I get away with this. xsl code: [code] <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output …

Member Avatar for sureshchinta
0
231
Member Avatar for alternat1

Hi, I am trying to get a count of the number of times the word "Development" appears in the column - this is a multi - choice column which means the word "Development" can appear along with other words. When I do the below, <xsl:variable name="Development" select="count(/dsQueryResponse/Rows/Row[normalize-space(@Project_x0020_Type) = 'Development'])" /> …

Member Avatar for fpmurphy
0
88
Member Avatar for pushparaju

Hi Guys, How can I convert XPath without namespace and prefix to the XPath with namespace and prefix. For Eg: I have a XML file like this <?xml version="1.0" encoding="UTF-8"?> <ns0:mt_test xmlns:ns0="http://hvpar"> <RECORD1> <FIELD1>1</FIELD1> <FIELD2>2</FIELD2> </RECORD1> </ns0:mt_test> and I need to write XPath Expression to check whether FIELD1 contains value …

Member Avatar for fpmurphy
0
91
Member Avatar for Andyyy

Hello Developers, [code] <p class="abc-srch-Metadata"><span class="abc-srch-URL"><a href="http://www.abc.ac.uk/pub/xyz.aspx?e=20" id="CSR_U_2" title="http://www.abclondon.ac.uk/pub/xyz.aspx?e=20" dir="ltr">http://www.abclondon.ac.uk/pub/xyz.aspx?e=20</a></span> - 13KB </p><span class="abc-srch-Icon"><a href="http://www.abclondon.ac.uk/pub/pqr.aspx" id="CSR_IMG_3" title="http://www.abclondon.ac.uk/pub/pqr.aspx"><img align="absmiddle" src="/_layouts/images/html16.gif" border="0" alt="File with extension: aspx"></a></span><span class="abc-srch-Title"><a href="http://www.abclondon.ac.uk/pub/xyz.aspx" title="http://www.abclondon.ac.uk/pub/xyz.aspx">ABC Publications Listing </a><br></span><div class="abc-srch-Description">Alcohol and the <b>lime</b> in perspective [/code] Can any one help me out with the xpath for retreiving title "ABC …

Member Avatar for mlohokare
0
144
Member Avatar for Andyyy

Hi all, My first post here and looking forward to learn a lot from other experienced developers in daniweb. Is there any way i can copy a image from the html web page and then change its dimmension to thumbnail and place it with a search result. For instance, you …

Member Avatar for Andyyy
0
82
Member Avatar for bullockpasha

I created a courses.xml file and I want to find the answers for following queries.I am new to xml so I want to know how I can do it.I want to use Xpath or Xquery. Here is the queries i want to find: 1-How can I find find the TA …

Member Avatar for bullockpasha
0
107
Member Avatar for suprakash444

Hi, I am trying to transform an XML string to HTML page using xslt. But I am getting the following exception : The stylesheet doesn't contain a document element. The stylesheet may be empty, or it may not be a well-formed XML document. My code is as below : Test.html …

Member Avatar for fpmurphy
0
150
Member Avatar for ronjustincase

is there any tool which will generate XSLT for converting from XML to fixed length Text format.I mean is there any IDE(which work on MAC) which will let us drag and drop the contents of XML and set some properties and give us the XSLT code. iam not lazy to …

Member Avatar for fpmurphy
0
112
Member Avatar for pavan.xsl

Hi Friends, i m using this format to convert amount to currency <xsl:value-of select='format-number(current(), "#,##0.00")' /> 100,000.00 -i m getting the out put like this but i need to get1,00,000.00 can any one help me out on this issue please .... Thanks in Advance pavan

Member Avatar for fpmurphy
0
66
Member Avatar for learningxslt

Hi All, I have a stylesheet with a identity transformation template and an element specific template. However, when I ran the below stlyesheet over a xml file, only identity transformation is invoked. My element specific template isn't. There is a target namespace for the schema that defines the elements. I …

Member Avatar for fpmurphy
0
137
Member Avatar for learningxslt

Hi All, I have a set of elements to be added to an existing XML document. I would like to write a XSLT tranformation for this. My requirement is that I need to check whether the element is already there in the XML file. Only if its non existent, I …

Member Avatar for fpmurphy
0
5K
Member Avatar for davidi

Hi, I've tried to find an answer to this everywhere but to now avail.... I have an XML/XSL file that displays a webpage. The XSL has : [I]<!--Refresh the page every X seconds--> <META http-equiv="Refresh"> <xsl:attribute name="content"> <xsl:value-of select="//PageRefreshOverride"></xsl:value-of> </xsl:attribute> </META>[/I] because I want the page to refresh every few …

Member Avatar for davidi
0
280
Member Avatar for sandeepbhutani

Hi, I am making some loops using xsl:for-each. Now I want to concatenate strings of each iteration to the previous iteration results. And want to keep it in some variable for later use. e.g.: for each iteration suppose i get a,b,c. Now I want to put them in a variable …

Member Avatar for fpmurphy
0
50
Member Avatar for kaprasanna

Hello, Is it possible to write xpath expressions that will query a web server's web.xml like this one : [CODE] <web-app> <display-name>My Application</display-name> <!-- Standard Action Servlet Configuration (with debugging) --> <servlet> <servlet-name>TestServlet</servlet-name> <servlet-class>com.mycompany.MyServlet</servlet-class> </servlet> <!-- Standard Action Servlet Mapping --> <servlet-mapping> <servlet-name>TestServlet</servlet-name> <url-pattern>/first</url-pattern> </servlet-mapping> </web-app> [/CODE] I would want …

Member Avatar for fpmurphy
0
107
Member Avatar for praveenrajmat

Hi... I need to split table based on a tag value. Please refer the below code which is the input xml for me [code] <exception> <funcid>Upld002</funcid> <header>Test1</header> <rec>Rec001</rec> </exception> <exception> <funcid>Upld003</funcid> <header>Test1</header> <rec>Rec001</rec> </exception> <exception> <funcid>Upld003</funcid> <header>Test2</header> <rec>Rec001</rec> </exception> [/code] From the above tags i'm generating table data with 3 …

0
84
Member Avatar for madigital

Hi everyone! First post here. I've been programming for years but this xslt confuses the heck out of me. Can someone please tell me how to get this piece of code to work? It's a fragment reading in an rss feed and I'm trying to get it to only show …

Member Avatar for fpmurphy
0
212
Member Avatar for andrewrigsby

Hi, I'm trying (and failing!) to learn XSLT and XPath and have a (hopefully) simple question I'm hoping someone could help with. Ok, here goes ..... Are all XPath expressions evaluated relative to an axis? For example, given the following template: [CODE]<template match="element()">..</template>[/CODE] Is the implicit child axis included as …

Member Avatar for fpmurphy
0
75
Member Avatar for kissmyawesome

I've been scratching my head trying to figure this out. Basically I am trying io impliment the CSS selector ":only-of-type" in XPath 1. The selector should only pick elements that have no other siblings of the same type. Its simple enough if I know the type ahead of time. e.g. …

Member Avatar for fpmurphy
0
74
Member Avatar for bramoin

Hi, I have the following xsl file which will map an xml to form a word xml. At the top of the xsl, i have a param defined in the global section: <?xml version="1.0" encoding="UTF-8" ?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml"> <xsl:output method="xml" /> <xsl:param name="barCode" /> <xsl:template match="/"> In another …

Member Avatar for fpmurphy
0
153
Member Avatar for aotonyleung

If i use the SUM function to sum those node with d.p. value....the output in sometimes are look strange...... [U]XML File[/U] <allgroup> <group_1 id="1"> <salary>100000.01</salary> </group_1> <group_1 id="2"> <salary>89000.02</salary> </group_1> <group_1 id="3"> <salary>89000.03</salary> </group_1> <group_1 id="4"> <salary>89000.04</salary> </group_1> <group_1 id="5"> <salary>89000.05</salary> </group_1> </allgroup> [U]XSL File[/U] <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output encoding='utf-8'/> …

Member Avatar for fpmurphy
0
116
Member Avatar for Techsavy

Hi, I have some data in a sharepoint List in the attached format and I would like to get an XSLT to be applied to get an xml output of the data in the following format: Type and ElementID are attributes of the Element. <Element Type= "Toplevel" ElementID="A" column8value="boolean" > …

0
67
Member Avatar for veledrom

Hi, I fill XML file manualy to print the data. How can we fill the XML file automaticaly like (data will be fetched from database and fill XML). Thanks [code] <catalog> <cd> <title>Empire Burlesque</title> <artist>Bob Dylan</artist> <country>USA</country> <company>Columbia</company> <price>10.90</price> <year>1985</year> </cd> </catalog> [/code]

0
51
Member Avatar for complete

XML can do a very cool trick. If you include the name of an XSL file in the XML file, you can produce what looks just like a formatted HTML file when you load the XML file into a browser. The question I have is this. How would you actually …

0
82
Member Avatar for veledrom

Hi, This is my XML file. I want to retrieve information stored in a HTML Table in index.html page. How can i do it? Thanks [code] <?xml version="1.0" encoding="UTF-8"?> <memo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="memo.xsd"> <header> <companyName>XML development LTD</companyName> <to>myemail@yahoo.com</to> <from>xml@yahoo.com</from> <date>1979-11-07</date> <reg>I don't know the reg</reg> </header> <body> <message> <parag>Hello, How are …

Member Avatar for veledrom
0
159
Member Avatar for Typhoon

Hello, We just bought a CRM software and until today, each salesman had his own contact list in Outlook. I retrieved, for each of them, XLS files from Outlook and I copy-pasted it in one file. Thing is, now I have hundreds and hundreds of duplicate records :( . I …

Member Avatar for gtd
0
139
Member Avatar for rickya100

Hi, I have been trying to get resorts from an XML tree but I have found that it seems to be very flat and not helpful at all in terms of targeting information. Attribute names are all the same whether it is the world element, region of world element, country …

0
68
Member Avatar for ksl

hello, I am having trouble dsipalying more than one value on the same line, I am not sure the exact way to go about this, <xsl:if test="/item/survey/pastCitations/citation[@REGVERS !='FV10']"> <xsl:attribute name="value-of">fixQuote(top[survey][pastCitations][ <xsl:value-of select="/item/survey/pastCitations/citation[@VTAG = $vtag] /@_name" /> [text]]) </xsl:attribute> </xsl:if> for this line I would like to dispaly the Text and …

Member Avatar for fpmurphy
0
87
Member Avatar for lg79

Hi, I would like to count all nodes "source" of "word" that start with the string "ABC". I can have multiple "word" inside a the element "wordGrp", as in entry/section/following-sibling::wordGrp/word/following-sibling::source For-each-group and a following count(current-group()) did not work for me, the XSLT processor returned "A sequence of more than one …

Member Avatar for fpmurphy
0
74
Member Avatar for Softwarez

I have the following XML: <?xml version = "1.0"?> <transactions> <transaction date = "05/22/2000" id = "0122"> <from account = "100392"/> <to account = "203921"/> <amount currency = "USD">15</amount> </transaction> <transaction date = "06/01/2000" id = "0129"> <from account = "203921"/> <to account = "877521"/> <amount currency = "USD">4800</amount> </transaction> …

Member Avatar for fpmurphy
0
125
Member Avatar for michux

In thread [url]http://www.daniweb.com/forums/thread157149.html[/url] I was asking for different alternatives for passing a node as a parameter to an XSL stylesheet called from Java using saxon. I set up on using the XdmNode object as a parameter for passing the parameter and here is a code extract: [code=java] // create a …

Member Avatar for michux
0
350

The End.