1,599 Topics

Member Avatar for
Member Avatar for anandunics

Hi ALL, I HAVE AN XSD FILE WITH NEEDS TO BE CONVERTED TO HTML FORM. WHAT ARE THE STEPS TO BE FOLLOWED ? PLEASE EXPLAIN... MAY BE XSD TO XML ? IF SO ? HOW ?

Member Avatar for mraheel
0
308
Member Avatar for ben317

I'm having a XSLT problem. I am reading from one xml sheet and creating another using XSLT. The final transformed XML has an element <Recreations> that contains <Recreation> elements. I am using <xsl:for-each> to create the <Recreation> elements. So my xslt looks something like this: <Recreations> <xsl:for-each select="MyItems"> <xsl:if select="cust:isThisARecreation(@Description)> …

Member Avatar for xml_looser
0
175
Member Avatar for pauljhester

I have spent quite a long time attempting to determine how to display various "elements" and "attributes" in HTML, but I have been having some issues. From what I have gathered I need to create an XSLT file that I can then reference in HTML, correct? When I try to …

0
76
Member Avatar for ayathullah

Hi, I am using the twitter api to retrieve some data. I'd like store my followers latest status tweet containing that hashtag #RT and the mention of my name. The staus ID can be retrieved via $xml->status->id. In the code below I'd like to php to search for certain words …

Member Avatar for twiss
0
187
Member Avatar for NuGG

Im new to php and have been struggling with this for some time, but I expect its something simple. Basically I have some code below which I want to use to display an events board. -Info for each event comes from a separate xml file for each event. -XML files …

Member Avatar for NuGG
0
213
Member Avatar for smandape

Hello Experts, you have been of great help to me when it comes to XSLT. Here is another problem I have while I try to extract the data from RDF/XML files. I don't know how to do that as there are terms like dcterms defined in the XML file. They …

Member Avatar for smandape
0
348
Member Avatar for xsltnewbie

I have the following xml source file : [code=xml]<root> <child1></child1> <child2></child2> </root>[/code] I would like to convert it to [code=xml]<MYOWNTAG1> <CURRENTDATE>CurrentDate</CURRENTDATE> <CURRENTTIME>CurrentTime</CURRENTTIME> </MYOWNTAG1> <MYOWNTAG2> <XML> <root> <child1></child1> <child2></child2> </root> <XML> </MYOWNTAG2>[/code] Any help would is appreciated.

Member Avatar for xml_looser
0
129
Member Avatar for jaango123

Any look up function can we use, to make this simple, so that we can write in 5 or 6 lines. We have similar lines repeating for around 300 lines. All we need is to map 'currcode' with the corresponding alphabets. <xsl:if test="$currCode='784'"> <xsl:value-of select="'AED'" /> </xsl:if> <xsl:if test="$currCode='971'"> <xsl:value-of …

0
63
Member Avatar for sacredgrim

Hey all I have an issue with building a list of images. Below is the structure i would like to build. basically i am trying to write a script for xsl in xslt or Javascript to read all files in a folder(will only have images in, so no checking will …

0
82
Member Avatar for sireesha g

Hi All, I have an xml [CODE] <?xml version="1.0" encoding="UTF-8"?> <columns> <column> <name></name> <displayname></displayname> <attributes> <attribute> <name>width</name> <value>100</value> </attribute> <attribute> <name>text-align</name> <value>left</value> </attribute> </attributes> </column> <column> <name>VersionCode</name> <displayname>Version Code</displayname> <attributes> <attribute> <name>width</name> <value>200</value> </attribute> <attribute> <name>text-align</name> <value>right</value> </attribute> </attributes> </column> <column> <name>MaterialType</name> <displayname>Material Type</displayname> <attributes> <attribute> <name>width</name> <value>100</value> </attribute> <attribute> …

Member Avatar for xml_looser
0
569
Member Avatar for sireesha g

Hi All, I have one scenario, In xslt i have used a input tag of type="button" with id="button1", Now in xslt if a condtion is met, suppose <xsl:if test="price &gt; 10"> i need to disable the button1 Can any one please suggest me how to achieve this using xslt. Thanks …

Member Avatar for f_atencia
0
507
Member Avatar for Gibbers

I'm trying to convert an XML file into SQL queries. There's a lot of foreign characters, quotes,etc. that are stored as special characters, like &amp Here's an example of what I'm doing. [CODE]<xsl:for-each select="main/test/picture"> <p> INSERT INTO example( id, name, <xsl:if test="@height">height,</xsl:if> <xsl:if test="@width">width,</xsl:if> <xsl:if test="description">description,</xsl:if> uri ) VALUES( '<xsl:value-of …

0
41
Member Avatar for MaYouSHka

hi all, i have been working for two months on a project and i have come up with an algorithm that is a mix of R. Mitkov's algorithm on anaphora resolution (robust, knowledge-poor algorithm) and several filters that are applied first to the xml file (a POS tagged text) to …

Member Avatar for TrustyTony
0
332
Member Avatar for citydusk

Hello experts, I am new to XSL and would like to transform a NewML G2 format XML into another XML. For example I have: [CODE] <?xml version="1.0" encoding="UTF-8" standalone="no"?><!-- SUMMARY: - Structure: NML2 SNI Text - Based On: NAR v1.2_1, NML2 v2.1_1 AUTHOR: --><!-- ========================================================= --> <newsMessage xmlns="http://iptc.org/std/nar/2006-10-01/" xmlns:rtr="http://www.reuters.com/ns/2003/08/content" xmlns:x="http://www.w3.org/1999/xhtml" …

0
92
Member Avatar for sireesha g

Hi ALL, As i am new to XSLT i am not able to implement the logic, Please share your views if any know's how do this. i have an xml [CODE]<?xml version="1.0" encoding="UTF-8" ?> <?xml-stylesheet type="text/xsl" href="Temp.xsl"?> <Rowsets DateCreated="2011-02-14T12:24:00" EndDate="2011-02-14T12:24:00" StartDate="2011-02-14T11:24:00" Version="12.0.2 Build(88)"> <Rowset> <Columns> <Column Description="BatchNumber" MaxRange="1" MinRange="0" Name="BatchNumber" …

Member Avatar for xml_looser
0
155
Member Avatar for Stew007

I have the following XML... <TechnicalMeterDetails> <RemovedMeterRegisters MeterCategoryCode="RM067"> </RemovedMeterRegisters> <RemovedMeterRegisters MeterCategoryCode="RM066"> </RemovedMeterRegisters> <NewMeterRegisters MeterCategoryCode="RM068"> </NewMeterRegisters> <NewMeterRegisters MeterCategoryCode="RM067"> </NewMeterRegisters> </TechnicalMeterDetails> I want to check that the MeterCategoryCode value in the RemovedMeterRegisters segments is the same value in the NewMeterRegisters segments. In the above example the answer would be false. If RM068 …

Member Avatar for xml_looser
0
117
Member Avatar for NuGG

I have the following code witch is used to display HTML from an XML file. The XML file itself comes from a form POST where a "\" is added in after various HTML tags. Is there anyway I can modify the script below to hide/remove the "\" when the XML …

Member Avatar for ko ko
0
1K
Member Avatar for tequila1

I have a big problem and i'm not even sure if solution exists for my problem... So the problem is: I have a xsd file, and I need to create xslt which will create html table with 2 columns: the first column is <xs:documentation> for all elements names (4 example …

Member Avatar for xml_looser
0
1K
Member Avatar for sireesha g

Hi All, i have an XML [CODE]<?xml version="1.0" encoding="UTF-8" ?> <Rowsets DateCreated="2011-02-14T12:24:00" EndDate="2011-02-14T12:24:00" StartDate="2011-02-14T11:24:00" Version="12.0.2 Build(88)"> <Rowset> <Columns> <Column Description="BatchNumber" MaxRange="1" MinRange="0" Name="BatchNumber" SQLDataType="12" SourceColumn="BatchNumber" /> <Column Description="VersionCode" MaxRange="1" MinRange="0" Name="VersionCode" SQLDataType="3" SourceColumn="VersionCode" /> <Column Description="MaterialType" MaxRange="1" MinRange="0" Name="MaterialType" SQLDataType="12" SourceColumn="MaterialType" /> <Column Description="LotNumber" MaxRange="1" MinRange="0" Name="LotNumber" SQLDataType="4" SourceColumn="LotNumber" /> …

0
58
Member Avatar for anandunics

Hi All, <client> <description>KKR</description> <rits>Test</rits> <time_zone_code>US/Central</time_zone_code> <directory_code>Foler</directory_code> </client> I need to fetch the above and put it in the form HTML FORM. Note : Must make use of Xpath,(Identity Transformation)

Member Avatar for anandunics
0
200
Member Avatar for jeraldmuthu

<?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html" indent="no" encoding="ISO-8859-1"/> <xsl:param name="context"/> <xsl:param name="renderId"/> <xsl:param name="token"/> <xsl:include href="../../wcf/controls.xsl"/> <!-- buttons with spaces inbetween --> <xsl:template match="button[@hidden='true']"/> <xsl:template match="button"> <xsl:text> </xsl:text> <input type="submit" name="{@id}" id="{@id}" value="{@label}" onclick="iceSubmitPartial(form, this, event);return false;"/> <xsl:text> </xsl:text> </xsl:template> <xsl:template match="tree-extras-top | tree-extras-bottom"> <tr> <td class="navText"> <xsl:apply-templates/> </td> …

0
99
Member Avatar for bijib06

Hello out there! Can anyone help me with a hint of how to solve this problem: I have a text file and I want to count the frequency of each stopword in the file. I have an XML file stopwords.xml against which I check for stopwords. My code is working …

0
60
Member Avatar for name02

I am writing an XSL document, using which I need to print a report. The report will have two tables and the table values and lables/header column should be displayed only if there is data in my JAVA object of class "Transfers". I thought of using <xsl:if> condition to check …

0
47
Member Avatar for sudheer2250

Hi, I am trying to convert a word xml into another xml file format using XSLT. Here I need to check the all the following siblings with some condition. If that condition is satisfied, the control should exit from that loop. How can i achieve this, I am desperately need …

Member Avatar for sudheer2250
0
344
Member Avatar for crazyTrader05

i need help with xslt .. i need to figure out start and end date by looking at a specific post date if DAY of the post date is between [1 - 15] then go back one month and for day use 15 - 31 if DAY of the post …

0
48
Member Avatar for DarkVision

ok here my code [CODE] libxml_use_internal_errors(true); $objXML = simplexml_load_file('MainRelease.xml','my_node'); // load xml file if(!$objXML){ $errors = libxml_get_errors(); foreach($errors as $error) { echo $error->message,'<br />'; } } else { $Result = $objXML->xpath('AllRelease/Release/name[@rdate="'.$DATERELEASE.'"]'); if(empty($Result)){ $AllRelease = $objXML->xpath("//AllRelease"); $releas = $AllRelease[0]->prependChild2("Release"); $dat = $releas->prependChild2("name"); $dat->addAttribute("rdate",$DATERELEASE); $releas->prependChild("comment",$COMMENT); $Anime = $releas->prependChild2("Anime"); $Anime->prependChild("popup",$POPUP); $Anime->prependChild("Title",$VIDEONAME); $Anime->prependChild("VideoUrl",$dir); $objXML->asXML("MainRelease.xml"); …

Member Avatar for DarkVision
0
143
Member Avatar for anandunics

Hi All, Recently i have developed a new XSL file in altova XMLSpy , and the XSL version is 2.0. When i tried the Transformation , in different environemt(without using XMLSpy), i am thrown with below error. ERROR: 'Syntax error in 'descendant::element()'.' FATAL ERROR: 'Could not compile stylesheet' javax.xml.transform.TransformerConfigurationException: Could …

Member Avatar for anandunics
0
242
Member Avatar for chriselectrix

Hi All Ive got an XSL for some XML data. The XML data contains a date field called OrderNum_OrderDate. How can I filter the data so it only displays data from the XML that has a date of TODAY + 7 days. I only want to see information for the …

Member Avatar for SBA-CDeCinko
0
435
Member Avatar for kadriirdak

Hi There, I have a usage problem with CURL output. I have a web services and I use CURL to get the data, However this web services set up as XML output and I want to convert it to array to use the result in the web form. My CURL …

Member Avatar for kadriirdak
0
6K
Member Avatar for skuip

Hi, I'm trying to extract an inner node and place it at the level as the element <para>. However I'm unable to figure it out. Source XML: [CODE] <para> Lorem ipsum dolor sit amet, <i>consectetur</i> adipiscing elit. Aenean vestibulum pharetra metus. <formula altimg="fig1">E = mc^2</formula> Curabitur ac nibh purus, eget …

Member Avatar for skuip
0
170

The End.