1,599 Topics
|
|
I have the following xslt which copies selected element of xml but omits the root node how do i get the root node output as well? <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > <xsl:output method="xml" indent="yes" version="1.0" encoding="iso-8859-1" /> <xsl:template match="/"> <!--<xsl:copy-of select="itemList" />--> <xsl:for-each select="itemList/saleItem"> <xsl:variable name="status"> <xsl:value-of select="status"/> … |
|
Hi, I have a problem with a nestled "for-each". I want information from every orditem. Every orderitem have one "orderitem id" and could have several "job id". The sample belove do not work,any suggestions? XML <order orderid="20"> <workflows> <workflow id="97" <items> <orderitem id="1"> <jobs> <job id="150"/> <job id="151"/> </jobs> </orderitem> … |
|
This might be a very simple answer but it's been stumping me. I need to load an xml file so Ican parse in in javascript. But the file is located on a different server entirely. Can I download it to disc with javascript, so I can load it later? Thanks … |
|
I am trying to merge 2 xml files in to one. They simply need to one another. Any help would be appreciated. [CODE] File 1: <?xml version="1.0" encoding="ISO-8859-1"?> <catalog> <data> <title>Title1</title> <description>Description1</description> </data> <data> <title>Title2</title> <description>Description2</description> </data> </catalog> File 2: <?xml version="1.0" encoding="ISO-8859-1"?> <catalog> <data> <title>Title3</title> <description>Description1</description> </data> <data> <title>Title4</title> … |
|
Hi Folks, I am looking for a solution as to how I can mask some data that is part of a CDATA element. My currently implemented xslt-1 script works fine when my xml element/attribute is not placed inside cdata, for example, in the following xml snippet, I masked <CreditCardNumber> element's … |
|
I'm trying to do an XSLT transformation that requires that I copy certain parts of the document multiple times and concatenate it to other individual parts. I'm working with xsl:copy and wildcards characters and coming up short on the output (I'm really trying to limit how many elements/attributes I have … |
|
|
I can't see where the error in my CSS document is, it says location is -1, -1 which isn't inside the document, tried different ways of defining the column and "up" and "down" images and neither seem to work. [Xerces-J 2.9.1] Checking "nasdaq.css" for Well-formedness ... Ln -1 Col -1 … |
Hi , I am totally new to XSLs, trying to write an xsl(JDeveloper) to validate XML against a given schema. I have been trying with the following but getting a syntax not supported error for "instance of schema-element" Can someone provide a sample xsl to validate xml against the schema? … |
|
Hello there guys, im having little problem and help would be appreciated :) I have few tags <name> <capacity> <lectureslot> <tutorialslot> and so on, and i want to read each tag separatly into separate field(label), or listbox. Here is part of my XML <?xml version="1.0" encoding="utf-8"?> <timetable> <module code="3SFE504"> <name>Algorithms … |
|
If I hard code something into the conatins it works just fine valstring = "[contains(title,'Test')]"; However if I try and use contains against the xpath title and then use what was entered into a text box I haven't figured out how to do that. I'm sure it's something very simple … |
|
hey guys, sorry for my noobness, i'm still a jr and the boss ask me to learn xml because i'll have to work on a ticket selling site. oke no problem there, i luv learning. so i read all the xml tut on w3school. it's not that hard, but more … |
|
i have to receive a mail when compare 2 xml files difference i have 2 xml file 1 st xml file: <?xml version="1.0" encoding="utf-8" ?> <Books> <Book bookId="100" name="Asp.Net" price = "230" /> <Book bookId="101" name="C#" price = "200" /> <Book bookId="102" name="Silverlight" price = "300" /> <Book bookId="103" name="MFC … |
|
|
Im working on applying a schema to an xml document but my editor (exchanger xml) is giving me some errors I can't figure out Ln 35 Col 67 - s4s-elt-invalid-content.1: The content of '#AnonType_inventory' is invalid. Element 'element' is invalid, misplaced, or occurs too often. Ln 16 Col 58 - … |
I wrote an XML parser that works great to fit my needs, but I can't retrieve the root attribute nodes no matter what I try! So far I have the following code that works great to retrieve the child tag values: import xml.dom.minidom def parse(filename): xmlDoc = xml.dom.minidom.parse(filename) tag = … |
|
Hello, I am using XMLReader to look thru and XML file that I have. While I have been able to play around with it and get it to pull some of the information I want, I am wondering what commands to use to do what I really want. For example, … |
|
Hi, I have a PHP file that gets an XML files from a HTML form. The PHP files needs to generate a new HTML file containing a table with the the data retrived from the XML file. I was able to this this properly (using expat). However, before adding the … |
|
> Quoted Text Here <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:d="http://schemas.microsoft.com/sharepoint/dsp" version="1.0" exclude-result-prefixes="xsl msxsl ddwrt" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:SharePoint="Microsoft.SharePoint.WebControls" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema"> <xsl:output method="html" indent="no"/> <xsl:template match="//xml"> <span style="border:solid 1px black"> -<xsl:value-of select="@query"/>- </span> <xsl:for-each select="//z:row"> <div> <xsl:value-of select="@ows_LinkTitle"/> </div> <div> <xsl:value-of select="@ows_Body"/> </div> </xsl:for-each> </xsl:template> </xsl:stylesheet> Gave me the … |
|
Hi, I have a problem with an xml file. I am trying to develop an xml file based on vra core 4.0 but when I check if my code is valid I take the following error. Could not open file: http://www.vraweb.org/projects/vracore4/vra-4.0-restricted.xsd (I use XML COPY EDITOR) A part of my … |
|
Hi all.. Am doing a website with admin panel using PHP Mysql.In index page it contains flash news container, When admin update news it will shown on Flash content through XMl. Everything is fine. When admin updating news its shown on flash. But i have listed by using LIST in … |
|
Hi, I have an issue, with not being able to set the the correct header here is the operation from the WSDL: [CODE]- <wsdl:operation name="findRegistrationByID" parameterOrder="registrationID"> <wsdl:input message="impl:findRegistrationByIDRequest" name="findRegistrationByIDRequest" /> <wsdl:output message="impl:findRegistrationByIDResponse" name="findRegistrationByIDResponse" /> </wsdl:operation>[/CODE] This is also from WSDL: [CODE]- <wsdl:operation name="findRegistrationByID"> <wsdlsoap:operation soapAction="urn://url/findRegistrationByID" /> - <wsdl:input name="findRegistrationByIDRequest"> <wsdlsoap:body … |
|
Hello there i would like someone to have a peek at this code and does it solve the question correctly ?? Are there any mistakes or any improvements i could add ?? Also If any one could tell me how to save the data entered by person into one file(XML)so … |
|
Hello fellas :) I have a task to do, there are 10 questions and i obviously need 10 answers :) I have done (attempted) some of them /not every yet/ but i wonder if there are any errors or any correction or improvements that could be made :) Thank you … |
|
Hello Does anyone know how to disable the current link in a breadcrumb trail. All that i know in XSLT has failed Please help here is the XSLT code: [code] <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="html" omit-xml-declaration="yes" /> <!-- Variable to determine if the current open page is displayed as a … |
|
hi guys, how are you? I hope someone can help me with this as its been bugging me all day, and I'm sure there is a very simple explanation. Basically, what I have at the moment is this:- [CODE] $ip = ($_SERVER["REMOTE_ADDR"]); $xml = file_get_contents("http://xxxxxxxxxxxxxx); [/CODE] This returns me the … |
|
What is the proper value of the multiple attribute for select tag? [url]http://www.tizag.com/htmlT/htmlselect.php[/url] says "yes" while [url]http://www.w3schools.com/tags/att_select_multiple.asp[/url] says "multiple" I did, however, tried both and worked just fine but I want to be using what's acceptable by w3c to ensure full compatibility in most major browsers. |
|
Hi there, I'm new to this web site and new to xml and xslt. I have the following document that I would like to transform using xml: [CODE]<?xml version="1.0" encoding="iso-8859-1" ?> - <Report Name="Conway"> - <table1> - <table1_JobNumber_Collection> - <table1_JobNumber JobNumber="3401"> - <Detail_Collection> <Detail ItemNumber="10" ItemSorCode="H0101" ItemSorName="Take up 305mm x … |
|
Hi there I have been trying to experiment with Parsing XML using Javascript. For some reason nothing happens. I found this example on W3 schools. Any idea why it's not working? This is my HTML page which contains the Javascript [CODE]<html> <head> <script type="text/javascript"> if (window.XMLHttpRequest) {// code for IE7+, … |
|
Hi all, I'm trying to make a multi-language website that allows the user to change language by clicking on a button (a flag representing the country/language). I have been able to achieve this using locale and a combo box so far but I'm struggling to implement it using buttons. This … |
|
Hi I wanted to add some some date comparison functions to some xslt. I thought since I have a custom myjs.js library loaded with a DoDebug function that simply returns a boolean True I could use the following but I get an "Unknown XSLT function Error". Is there a way … |
The End.