428 Topics
Hello, I am trying to make a for-each loop that selects the nodes to run over using a variable. So instead of: <xsl:for-each select="item"> It's: <xsl:for-each select="$nodes"> I've stripped what I have so far to the example below to illustrate what I've got: XML: [CODE]<?xml version="1.0"?> <test-root name="test document"> <list …
Hello, this is my XML: [CODE] <OPTIONS> <ROW NUM="1"> <ROW_NUM>1</ROW_NUM> <INVOICE_NUMBER>000001</INVOICE_NUMBER> <ID>144795</ID> <CUS_UK>20544</CUS_UK> <DESC_LONG>KELEME</DESC_LONG> </ROW> <ROW NUM="2"> <ROW_NUM>1</ROW_NUM> <INVOICE_NUMBER>000001</INVOICE_NUMBER> <ID>69449</ID> <CUS_UK>15249</CUS_UK> <DESC_LONG>PETRIMEX</DESC_LONG> </ROW> <ROW NUM="3"> <ROW_NUM>1</ROW_NUM> <INVOICE_NUMBER>000001</INVOICE_NUMBER> <ID>4125</ID> <CUS_UK>15249</CUS_UK> <DESC_LONG>PETRIMEX</DESC_LONG> </ROW> <ROW NUM="4"> <ROW_NUM>3</ROW_NUM> <INVOICE_NUMBER>000002</INVOICE_NUMBER> <ID>4152</ID> <CUS_UK>15249</CUS_UK> <DESC_LONG>PETRIMEX</DESC_LONG> </ROW> <ROW NUM="5"> <ROW_NUM>3</ROW_NUM> <INVOICE_NUMBER>000002</INVOICE_NUMBER> <ID>69486</ID> <CUS_UK>15249</CUS_UK> <DESC_LONG>PETRIMEX</DESC_LONG> </ROW> </OPTIONS> [/CODE] What …
Hello, I am quite new with XSLT and I need to convert this xml: <?xml version="1.0" standalone="yes"?> <assesmentItem> <choiceInteraction responseIdentifier="correctresponse" title="title" discipline="discipline1" dificulty="dificulty1" timexpected="20" basetype="choice" cardinality="single"> <prompt>answer1</prompt> <simplechoice0 >response0</simplechoice0> <simplechoice1 >response1</simplechoice1> <simplechoice2>response2</simplechoice2> </choiceInteraction> </assesmentItem> into this one: <?xml version="1.0" standalone="yes"?> <assesmentItem> <choiceInteraction responseIdentifier="correctresponse" title="title" discipline="discipline1" dificulty="dificulty1" timexpected="20" basetype="choice" cardinality="single"> <prompt>answer1</prompt> …
I am administrator of a CMS system for publishing web content. Our editors send newsletters out in html format. Email clients that doesn't understand html display those newsletters as plain text. That means that all the the html tags are displayed as part of the content. I am working on …
XML to XSLT for XML with value in attribute -------------------------------------------------------------------------------- Hi All - I need your help to resolve this. I have gone through some basic examples of xml and their conversion to xslt, but the one i have to convert is something quite specific. The XML schema for the …
Hi all, I'm rather new to XSL (and this forum) and have searched everywhere to find out how to order the output of XML to text using XSLT but haven't found the answer. The XML is similar to the following: [CODE] <table name="data"> <row> <field column="groupA" type="java.lang.String">00000030</field> <field column="name" type="java.lang.String">Smith</field> …
Hello , I have a requirement to convert an xml document to another xml document using xslt. I am new to xml and xslt and need your help in solving this problem. I have a xml file which looks like below <Vendor> <contact Id="1234" CmpnyNm="ABC" ContactNm="Sheryl"> <Phone Number="555-5555" Type="WorkPhone"/> </Contact> …
Hi good morning! I have developed XSLT for transforming xml into xml. Ex : input xml <item> <name>sample1<name> <desc></desc> </item> output xml <item> <name>sample1<name> [B][COLOR="Red"]<desc/>[/COLOR][/B] </item> In the transformed xml file I am getting self closing tag for the empty data element. But for us our parser does not support …
Hi, I have to generate an Excel sheet with specific format from an XML using XSLT. I am having issue with defining Name Range, as i have requirement that all the rows in excel should be within a name range.I am writing following Tag for NameRange. <Names> <NamedRange ss:Name="Range1_Test" ss:RefersTo="=TestXSLT!R1C1:R4C4"/> …
I want to publish from DB2 XML column to html using XSLT. Please explain me with example... I use DB2 V9.1.
I need to work with a nested for-each loop in XSLT. Below is the code. Please note that I am using grouping here. [code] <xsl:key name="list" match="video_card" use="id"/> <xsl:for-each select="(//video_card)[generate-id(.)=generate-id(key('list', id))]/id"> <div class="show_config_list"> <xsl:for-each select="key('list', .)"> <xsl:sort select="config_name"/> <input type="checkbox" class="config_list" value="{config_id}" name="cfg[][id]" [B]id="cfg_{position()}"[/B] checked="checked" /> </xsl:for-each> </div> [/code] If …
Hi, I have my xml like below <compType> <round roundNumber =1 name"xyz"> <fixture fixtureId="1063" status="NotStarted" > </round> <round roundNumber =1 name"dgb"> <fixture fixtureId="334" status="NotStarted" > </round> <round roundNumber =2 name"dgb"> <fixture fixtureId="334" status="NotStarted" > </round> </compType> I know I can group the rounds with the same round number but still …
Hi I need to convert below part <ul> <li id="L_115775_tr"> <span> <a href="http://support.microsoft.com/ph/11732" id="L_115775">Windows Vista Solution Center</a> </span> <li id="L_116381_tr"> <span> <a href="http://support.microsoft.com/ph/8722" id="L_116381">Windows Internet Explorer 7 Solution Center</a> </span> <li id="L_125705_tr"> <span> <a href="http://support.microsoft.com/ph/1173" id="L_125705">Windows XP Solution Center</a> </span> <li id="L_147192_tr"> <span> <a href="http://support.microsoft.com/gp/cp_email" id="L_147192">E-mail Solution Center </a> </span> …
Hi: I was wondering if anyone was using XSLT to show the results of Google Analytics. If so what is the best way to get started. Thank you!
hi, i'm really a newbie in xslt. i try to add string to a variable using concat (there is some how my xslt processor doesn't know string-join, but that's not the point here =P) this is some part of xml code [code=xml] <node0> <node1> <node1name>xxxx</node1name> <node2> <node3>01</node3> </node2> <node2> <node3>02</node3> …
Hey guys i have a xml file which looks like [CODE] <?xml version="1.0" ?> - <Booking> - <booking> - <required> <VoyageID>navid</VoyageID> <BookingNumber>omid</BookingNumber> <LoadPort>nariman</LoadPort> <DischargePort>mojedeh</DischargePort> </required> - <additional> <sepandar>sepandar</sepandar> <sepand>sepand</sepand> <manoucher>manoucher</manoucher> <nasrin>nasrin</nasrin> <homa>homa</homa> <parviz>parviz</parviz> <farhad>farhad</farhad> <giti>giti</giti> <marzbani>marzbani</marzbani> </additional> </booking> - <booking> - <required> <VoyageID>2</VoyageID> <BookingNumber>141</BookingNumber> <LoadPort>280</LoadPort> <DischargePort>419</DischargePort> </required> - <additional> <sepandar>558</sepandar> …
Hello, this is not a Web Development question, but this is the only XML forum on Daniweb. I need to copy a specific number of nodes in an XSLT transform. For example, I need to copy the first 5 <student> nodes, with all child nodes and attribute nodes, even though …
I am using an XSL document to pretty print my RSS feed. However, special characters don't parse - they appear within the feed as and & What line(s) do I need to specify in my RSS and XSL XML documents in order to get these to work? It's my …
Hello, It has been quite some time since I have done any .xml/.xsl work My current site displays the contents of the category (only) when clicked. What I need it to do is display a Long list of all content from all categories seperated by Category heading. Also when a …
hi there :) recently i have started to learn xml and xsl and i have some questions if you dont mind :) ... 1. xml:if elementes and predicates aren't the same thing? 2. xml+xsl are only to replace html + css? 3. in what fields do you apply xml+xsl? only …
Hello! I am a semi-beginner in XML, and I am trying to develop a photo directorate for my company. The only problem is that I have to do everything by hand, so though I have no problem getting data from my XSL to my XML, I have not yet been …
Hi guys, Here is my snippet of input xml file.. [HTML]<Root xmlns="http://www.wfmc.org/2002/XPDL1.0" xmlns:xpdl="http://www.wfmc.org/2002/XPDL1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Id="wrkflw6" Name="wrkflw6" xsi:schemaLocation="http://www.wfmc.org....xsd">[/HTML] Currently, I am not sure how I can modify the my standard xslt to completely ignore all this attributes.I do also realise that ignoring these attributes is not good idea. But the case …
Hi this is my first paste... [URL="http://paste.plone.org/12700"]http://paste.plone.org/12700 [/URL][Contains my input.xml and transform.xslt and output file it generated. [URL]http://paste.plone.org/12706[/URL] .. this contains my new input.xml file.. And in here, all the Activitiy's tag attributes are being rewritten as children. And here is the xslt which i tried to write and failed... …
This is my input.xml file. [URL="http://paste.plone.org/12516"]input.xml[/URL] This is my output.xml [URL="http://paste.plone.org/12518"]output.xml[/URL] This is xsl transformer file. [URL="http://paste.plone.org/12523"]tranformer.xsl[/URL] Hi guys, looks at the commented sections in all the three files. Thanks for any help.. Basically i need help in modifying the transformer file. So that the <extendedattributes> tag in the input …
Hi guys i am pretty new to XML. Well I have transform a xml file in format A(let's say) to format B. By surfing the websites, I found that XLST can do this.But these 2 formats dun not neccesarily have easy transforms like tag-to-tag. They can be transformed from tag-to-tag,tag-to-attribute …
hi ya i have studied on many website but they did not tell exactly what to do to get xml file into xslt or just only put these codes <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" > <!-- The bulk of the XSLT document goes here --> </xsl:stylesheet> is that enough?> i …
HI , can anyone tell me how i can edit [U]rotation[/U] in my xsl? my xml lookes something like that: <root> <obj col="0xff0000" xPos="25" yPos="0" widht="2" height="2" [B]angle="30"[/B] /> </root> my question is how can i write the angle in the xsl? thanks
How do I preserve things like tabs and carriage returns in text? when transforming XML to XHTML with XSL. For example: XML [CODE] <?xml version="1.0" encoding="ISO-8859-1"?> <?xml-stylesheet type="text/xsl" href="article.xsl"?> <content> <article name="Test Article"> <heading>Test Article</heading> <subheading>Special Chars</subheading> <paragraph> <text> a less than < a greater than > </text> <text type="code"> …
The End.