1,599 Topics

Member Avatar for
Member Avatar for Alba Ra

As mentioned is this [URL="http://www.daniweb.com/forums/thread255320.html"]thread[/URL] I intend to create a collection of functions that use only core functions (as the [URL="http://www.php.net/manual/en/ref.strings.php"]String[/URL] functions) to maximal compatibility. (See the [URL="http://sites.google.com/site/xmlxslt4php/"]website[/URL] - anyone is invited to participate.) The first task will be to parse a string (containing the XML data), break it down …

Member Avatar for ShawnCplus
0
514
Member Avatar for Jarredpsmith

Hi Im working on an Actionscript 3 program where i will click through a tree structure of buttons and use the values of the particular set of buttons, to access its corresponding value in an XML file. As i click each button, I start forming a string eg. Click1 = …

Member Avatar for Jarredpsmith
0
93
Member Avatar for hpdp

Hi, I have the following XML <ext-link xlink:href="http://....com">www....com</ext-link> in my xslt, when I have ... <ext-link xlink:href="{@xlink:href}"> .... When I ran it, it gave me error " namesapce error : namespace prefix xlink for href on ext-link is not defined. I tried to use "xlink\:href", it didn't work. How to …

Member Avatar for hpdp
0
102
Member Avatar for papayaparadise

Hi, I tried searching it up but I can't see to find an answer. What is type[B] xhtml:flow[/B] in an XML document? If anyone could also provide an example, that would be awesome - thanks!!

0
49
Member Avatar for mk123

I'm having difficulty writing my xml schema (.xsd) file. My xml file contains a recursive element para which in turn has mixed elements within. The element para contains either text only or it contains 0 or more sub-elements para and/or it contains 0 or more element footnotes or/and it contains …

Member Avatar for mk123
0
123
Member Avatar for papayaparadise

Hi, I'm trying to generate an XML file with the following lines looking like: [CODE=XML]<?xml version="1.0" encoding="UTF-8"?> <Platform xmlns:xsi="http://www.w3.ord/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="theschema.xsd">[/CODE] Platform is the root node. I need xsi:noNamespaceSchemaLocation for XML validation against the schema. I've tried the following code (where xmlDoc is of type XmlDocument): [CODE=C#]XmlElement Platform = xmlDoc.CreateElement("Platform"); Platform.SetAttribute("xmlns:xsi", …

0
47
Member Avatar for David_k2

Hi All, First time post :) I am having a problem with sorting a for-each loop. I need to sort the data based upon a date given by a child element that has a certain attribute, confused ill show the code: XML FILE: [CODE]<?xml version="1.0" encoding="utf-8"?> <IssueViewXMLExport xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" …

Member Avatar for David_k2
0
126
Member Avatar for some_one_

Hi, Need some guidance as this is new territory for me. I have an XML/XMI file representing a UML diagram. I need to transform it into a file with a different XML structure. I believe I can use either XSLT, XPath, or XQuery to achieve this... or maybe something else …

Member Avatar for rrusin
0
81
Member Avatar for mvujica

I am quite new to XSLT and I want to add unique index to elements types to transform something like this: <item1> [INDENT]<item2>[/INDENT] [INDENT][INDENT]<item3></item3>[/INDENT][/INDENT] [INDENT][INDENT]<item3></item3>[/INDENT][/INDENT] [INDENT]</item2>[/INDENT] [INDENT]<item2>[/INDENT] [INDENT][INDENT]<item3></item3>[/INDENT][/INDENT] [INDENT][INDENT]<item3></item3>[/INDENT][/INDENT] [INDENT]</item2>[/INDENT] </item1> <item1> </item1> into: <item1 id="1"> [INDENT]<item2 id="1">[/INDENT] [INDENT][INDENT]<item3 id="1"></item3>[/INDENT][/INDENT] [INDENT][INDENT]<item3 id="2"></item3>[/INDENT][/INDENT] [INDENT]</item2>[/INDENT] [INDENT]<item2 id="2">[/INDENT] [INDENT][INDENT]<item3 id="3"></item3>[/INDENT][/INDENT] [INDENT][INDENT]<item3 id="4"></item3>[/INDENT][/INDENT] [INDENT]</item2>[/INDENT] …

Member Avatar for mvujica
0
98
Member Avatar for emime

Please help, no way to solve it :(( ... [COLOR="Red"]Given this input:[/COLOR] [CODE]<p class="Absatz">SIT_RTSPECIFICATION Input</p> <p class="code" style="font-weight: normal;">structure ('ENTITY_NAME': "SIT_RTSPECIFICATION",</p> <p class="code" style="font-weight: normal;">'STR_RTSPEC_ID: "specification ID",</p> <p class="code" style="font-weight: normal;">'STR_RTSPEC_NAME: "specification name",</p> <p class="code" style="font-weight: normal;">'STR_RTSPEC_DESC: "description",</p> <p class="code" style="font-weight: normal;">'ENTITY_CONTENT': sequence(</p> <p class="code" style="font-weight: normal;">structure ('ENTITY_NAME': "SIT_RTSPECIFICATION_PROPERTY", 'STR_PROPERTY_NAME: …

0
47
Member Avatar for derakesh

HI All, I am facing problem while using xslt. the scenario is: I have a input file which is as following <sample> <Term id="12" Rid="23"> <data1>xy</data1> <data2>xy</data2> <data3>xy</data3> </Term> <Sterm> <Lterm> <Term idref="13"/> <Term idref="12"/> <Term idref="14"/> <Term id="15" Rid="27"> <data1>xy</data1> <data2>xy</data2> <data3>xy</data3> </Term> </Sterm> <Nterm> <Term id="13" Rid="23"> <data1>xy</data1> …

0
119
Member Avatar for cooltami

when I do xslt transformation, everything went well. But wherever the content has <key> tag (for eg <key>Black</key> <key>and</key> <key>Decker</key>), is transformed as BlackandDecker in the output instead of Black and Decker Any suggestion, or anything am missing here? Thanks

Member Avatar for GRaymer
0
75
Member Avatar for vivek4075

hi all, sorry i am posting on top of this mail i have a problem see one xml file look like <my-app> <name></name> <!--<class></class>--> </my-app> i want to uncomment the commented part through xslt. please help me thanks in advance

Member Avatar for vivek4075
0
89
Member Avatar for m57lyra

Given an XML structured as dogs dog @id name family father mother Where the father and the mother are identified by @id, and are of course peer nodes. I need to print out the name instead of the id in XSLT inside a for-each loop. What is the Best Practice …

Member Avatar for m57lyra
0
97
Member Avatar for sdzahed

Hi, Iam very new to XSLT and XML. I am trying to invoke a javascript function from inside my xslt documen. The javascript snippet is as follows: [CODE] <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:js="urn:custom-javascript" exclude-result-prefixes="msxsl js" > <msxsl:script language = "JavaScript" implements-prefix = "js"> <![CDATA[ function compareCsvs (firstString,secondString) { var firstArray=firstString.split(","); …

Member Avatar for sdzahed
0
203
Member Avatar for DJAyzed

I have a datagridview on my form called "mainGrid" and im not very good with XML buti found a small example to load but not one to save I wondered if there was a equally simple way to save! Heres the loading code: [code] Private Sub loadGrid() Dim ds As …

Member Avatar for DJAyzed
0
285
Member Avatar for amadaeliseo

I i have a table in excel with some movies and i want to extract it to XML using XSLT. How can i do that. movie 1 | actor 1| 2009 | ... movie 2 | actor 2 | 2010 | ...

0
43
Member Avatar for mahendra dubey

Hi there I am using XSLT to process an XML file.I want to copy all whole XML and want to modify some attribute node.I using follwing code [code] <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl" xmlns:db="http://tempuri.org/DatabaseXMLSchema.xsd"> <xsl:output method="xml" indent="yes"/> <xsl:template match="@* | node()"> <xsl:copy> <xsl:apply-templates select="@* | node()"/> </xsl:copy> …

0
57
Member Avatar for sbutt

Hi All, I have a following xml: [code] <?xml version="1.0" encoding="UTF-8"?> <ForwardRequestResponse xmlns:m="http://webservices.kuoni.ch"> <ForwardRequestResult><![CDATA[<?xml version="1.0" encoding="windows-1252"?><Response Version="2.5" From="KUONEKA0" To="CETS" TermId="XXXXXX" Date="18062009" Time="163523" Type="ERROR" Confirm="X" Agent="XXXXXX" Lang="EN" UserCode="X" UserType="X" UserName="X" UserFirstName="X" Mode="X"><Err><ErrorNr>9999</ErrorNr><ErrorText>Fehlerhafter Request</ErrorText><ErrorText>element &lt;Request&gt; attribute: TermId is too long</ErrorText></Err></Response>]]></ForwardRequestResult> </ForwardRequestResponse> [/code] And I want to extract a CDATA out of it …

Member Avatar for vivek4075
0
132
Member Avatar for himit

Hi, Can we declare a variable at one place and assign it a value at another in XSLT? I know that we can assign a value to a variable only once (please correct me if I am wrong), however i am not sure whether we can do it in 2 …

0
87
Member Avatar for 2abani

sample of my xml [CODE]<?xml version = "1.0" encoding="UTF-8"?> <?xml-stylesheet type = "text/xsl" href = "input.xsl"?> <products> <laptop> <name>hp </name> <details> 15.6-Inch Espresso Laptop - Up to 4 Hours of Battery Life (Windows 7 Home Premium) </details> <price>600$</price> </laptop> <laptop> <name>dell vostro</name> <details> 17-Inch </details> <price>600$</price> </laptop> <laptop> <name>acer aspire …

Member Avatar for SoftwareDev
0
147
Member Avatar for hangon

Hi, I have an xml I want to make an exact copy of it. Here is my input/xsl but in the output I get all the elements but namespace prefix is not coming for all the elements. See the red highlighted section [code] <?xml version="1.0" encoding="UTF-8"?> <env:Envelope xmlns:env = "http://schemas.xmlsoap.org/soap/envelope/" …

0
64
Member Avatar for psha85

Hi everyone- I really need help with an XML Stylesheet ASAP. I am stuck on this one part and I really need to finish it off. I have attached a ZIP folder of the files. The instructions for what I'm supposed to be doing are in the file titled 'assignment.doc' …

0
46
Member Avatar for skyyforever

Hello everyone, I'm trying to implement windows form with data grid (or anything you say is better) which should represent a hierarchical data. This data are stored in a xml file which structure is as follows: [code] <elements> <element> <term>name of element</term> <subelements> <caption> <term>caption name</term> <subelements> <caption> <term>caption 2 …

Member Avatar for gusano79
0
177
Member Avatar for siddhithakkar

Hi guys, I am new to this list and really hope to gain a lot from all the experienced professionals out there. Here is what I need to do this time around: I have an input code which is a complete flat structure- grouping of elements is desired out of …

0
55
Member Avatar for hangon

Hi, I have an xml input (wsse) and I want to change the value of one of the attribute "mustUnderstand" while copying. Input.xml [code] <?xml version="1.0" encoding="UTF-8"?> <env:Envelope xmlns:env = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd = "http://www.w3.org/2001/XMLSchema" xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"> <env:Header> <wsse:Security env:mustUnderstand = "1" xmlns:wsse = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"> <wsse:UsernameToken xmlns:wsse = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"> <wsse:Username …

0
68
Member Avatar for bluem1

There has to be an easy answer for this, I hope! I basically need the grandchildren of the below xml tree to show up in a vb.net gridview. I have the data getting pulled but all values are getting put into a single cell. Here is the xml tree. [CODE]<?xml …

Member Avatar for sinnerFA
0
258
Member Avatar for rodrigodsp

Hi all, I'm using XSL-FO and Apache FOP to generate PDF documents from XML documents. I managed to transform the XML into PDF with 1 page per sheet, but I also would like to get PDFs with 2 and 4 pages per sheet. Does anyone have any idea how I …

Member Avatar for sinnerFA
0
492
Member Avatar for Radiodave

Hi there I'm hoping there's an easy answer to a (hopefully) not too long-winded issue... I'm building a C# web client using a proxy wsdl.exe'd from a wsdl file and six schemas, each in a different namespace. Some schemas extend complex types in others. When i get a soap:Fault from …

Member Avatar for sb20642
0
563
Member Avatar for kkk_f17

while i'm running the below code, I'm getting : "There are several Java methods that match equally well". Can any one solve this problem. Please i need u r help. Thanks in Advance My XML:-- [code] <?xml version="1.0" encoding="UTF-8"?> <article1> <title>kiran Java May Be a Fad</title> <author>J. Burke</author> <startdate>25/12/2009</startdate> <enddate>30/10/2010</enddate> …

0
65

The End.