Hi there ! I have xml and xsl files i need to convert them to xslfo files . I need this to convert to pdf files. Thanks.

Member Avatar
Member Avatar
+0 forum 2

Hello, I have the following code in XML: <?xml version="1.0" encoding="UTF-8"?> <agency> <destinations> <destination id="bel">Belize</destination> <destination id="mad">Madeira</destination> <destination id="per">Peru</destination> </destinations> <traveler id="coelho"> <passport>P-123456-08</passport> <name>Pedro Coelho</name> <born>1964-10-05</born> <trip> <start>2013-07-01</start> <end>2013-07-15</end> <itinerary destination="bel"> Viagem em classe executiva para Belize via Frankfurt. </itinerary> <plane date="2013-07-01"> Pedir refeição vegan. <airport>Barajas</airport> Alertar assistente antes da próxima ligação. </plane> <plane date="2013-07-01"> Confirmado. Comparecer com 3 horas de antecedência. <airport>Frankfurt</airport> </plane> <hotel date="2013-07-01">Beach Resort</hotel> <hotel date="2013-07-08">Mountain Inn</hotel> </trip> </traveler> <traveler id="leite"> <passport>P-456789-09</passport> <born>1970-12-25</born> <name>Fernanda Leite</name> </traveler> </agency> And the result in an xml file: <?xml version="1.0" encoding="UTF-8"?> <destinations> <destination id="bel"> <trip start="2013-07-01" end="2013-07-15"> <itinerary> Viagem em classe …

Member Avatar
Member Avatar
+0 forum 2

I have used XSLTProcessor to receive XML data: $atb = new XSLTProcessor(); Often it takes a few seconds the data to load. I understood that there is a faster way to load the information. The current speed is like this: http://time-time.net/time/new-york-new-york-usa.php which is in most of the cases too slow. Do you have any tips where to look for information?

Member Avatar
Member Avatar
+0 forum 1

I want to obtain a better xml file using some xslt and xml below. <?xml version="1.0" encoding="UTF-8"?> <Pallets><Pallet> <PalletNumber>2</PalletNumber> <Product>1</Product> <Quantity>2</Quantity> </Pallet> <Pallet> <PalletNumber>2</PalletNumber> <Product>1</Product> <Quantity>4</Quantity> </Pallet> <Pallet> <PalletNumber>2</PalletNumber> <Product>2</Product> <Quantity>1</Quantity> </Pallet> <Pallet> <PalletNumber>3</PalletNumber> <Product>1</Product> <Quantity>2</Quantity> </Pallet> <Pallet> <PalletNumber>4</PalletNumber> <Product>2</Product> <Quantity>2</Quantity> </Pallet></Pallets> I need to sum up quantity per pallet number and product(see first node below) .Also sequence number is needed in the right part of palletnumber value based on first appearance in the xml.Results should look like : <?xml version="1.0" encoding="UTF-8"?> <Pallets><Pallet> <PalletNumber>2_1</PalletNumber> <Product>1</Product> <Quantity>6</Quantity> </Pallet> <Pallet> <PalletNumber>2_2</PalletNumber> <Product>2</Product> <Quantity>1</Quantity> </Pallet> <Pallet> <PalletNumber>3_1</PalletNumber> <Product>1</Product> <Quantity>2</Quantity> </Pallet> <Pallet> <PalletNumber>4_1</PalletNumber> <Product>2</Product> …

Member Avatar
+0 forum 0

Hi, I'm having an issue with viewing an extracted document from FTP. When I try to view the document in IE I receive the following message: The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. -------------------------------------------------------------------------------- System error: -2146697211. Error processing resource 'file:///H:/resources/protocol.xsl'. Could it be a server issue?? I'm new to this. Thanks

Member Avatar
+0 forum 0

Hi Friends, I am new to this XML & XSL. I want to write a template which takes two arguements and it should take the node name and node value. in template i want to format the input value. Please share if any one can guide me on this. The below values i want to format the float values each with different formats. for example first two values should be always 3 digits format. and 3rd node i want to display always 3decimals. 4th node i want to display always 4 decimal values. 5th node i want to display always …

Member Avatar
+0 forum 0

Sorry **How to add image in pdf header.** i get the image url in String. String Image = request.getContextPath() + "/pdf.gif"; parameters.put("pageHeaderText", Image); i passed to the xsl <xsl:value-of select="$pageHeaderText"/> but the after generating pdf the url path of Image i get into the string displaying(not Image) in the header of the PDF. Please help me to fix the issue.

Member Avatar
+0 forum 0

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
Member Avatar
+0 forum 7

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 be needed) and "build" a list from the images in the folder and "build" a list like the one below but only changing the image name/ or similar. I dont know which language for this, but the page is an xsl page so the scripts will need to work with …

Member Avatar
+0 forum 0

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
Member Avatar
+0 forum 2

<?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> </tr> </xsl:template> <xsl:include href="../../wcf/changeorder.xsl"/> <!--<xsl:include href="hierarchy-navigator.xsl"/> --> <xsl:include href="dnd_hier_nav.xsl"/> <xsl:include href="dnd_tree.xsl"/> <xsl:include href="../../wcf/identity.xsl"/> </xsl:stylesheet> I'm new to Business Inteligence(Datawarehousing), in our company already they are created product based on through mondrian they are retrieving the data. now i'm seeing that code in eclipse i put and running the to find …

Member Avatar
+0 forum 0

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 not compile stylesheet at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(Unknown Source) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(Unknown Source) at xml.Xml2Html.main(Xml2Html.java:13) [CODE]<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions"> <xsl:template match="/"> <html> <head> <title>test</title> <link href="tabs.css" rel="stylesheet" type="text/css"> </link> </head> <body> <xsl:for-each select="/node()"> <xsl:if test="descendant::element()"> <ol id="toc"> <xsl:choose> <xsl:when test="descendant::element()"> <xsl:call-template name="parn" /> <!-- This calls the Template named …

Member Avatar
Member Avatar
+0 forum 2

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 next seven days. It needs to be based on a dynamic date so it doesnt have to be changed every day. Any help would be appreciated. Thanks.

Member Avatar
Member Avatar
+0 forum 4

Hi All, I am not sure where am i going wrong but this is something which made me realise that my understanding about the for-each and apply-templates was wrong. :( I have 2 XMLs, I want to display the 'value' present in one XML after comparing the 'name' present in both the XML's 1st XML (XML1.xml) from which i'll pick the values- [CODE] <?xml version="1.0" encoding="UTF-8"?> <alpha> <table name="tab1"> <data> <prop> <name>abc</name> <value>123</value> <ismultival>0</ismultival> </prop> <prop> <name>xyz</name> <value>456</value> <ismultival>0</ismultival> </prop> <prop> <name>lmn</name> <value>789</value> <ismultival>0</ismultival> </prop> </data> <data> <prop> <name>zyx</name> <value>987</value> <ismultival>0</ismultival> </prop> <prop> <name>nml</name> <value>654</value> <ismultival>2</ismultival> </prop> <prop> <name>cba</name> <value>321</value> …

Member Avatar
Member Avatar
+0 forum 1

Hi All I have an XML output that looks similar to the below ... [CODE]<ELEC01_SOWaitingParts3> <JobOper_JobNum><![CDATA[019564]]></JobOper_JobNum> <JobOper_OprSeq><![CDATA[60]]></JobOper_OprSeq> <JobOper_OpCode><![CDATA[A/W]]></JobOper_OpCode> <JobOper_OpDesc><![CDATA[ACID/WASH]]></JobOper_OpDesc> <JobOper_OpComplete><![CDATA[No]]></JobOper_OpComplete> <JobOper_QtyCompleted><![CDATA[0.00]]></JobOper_QtyCompleted> </ELEC01_SOWaitingParts3> <ELEC01_SOWaitingParts3> <JobOper_JobNum><![CDATA[019564]]></JobOper_JobNum> <JobOper_OprSeq><![CDATA[70]]></JobOper_OprSeq> <JobOper_OpCode><![CDATA[INSP A/W]]></JobOper_OpCode> <JobOper_OpDesc><![CDATA[INSP ACID/WASH]]></JobOper_OpDesc> <JobOper_OpComplete><![CDATA[No]]></JobOper_OpComplete> <JobOper_QtyCompleted><![CDATA[0.00]]></JobOper_QtyCompleted> </ELEC01_SOWaitingParts3> <ELEC01_SOWaitingParts3> <JobOper_JobNum><![CDATA[019564]]></JobOper_JobNum> <JobOper_OprSeq><![CDATA[80]]></JobOper_OprSeq> <JobOper_OpCode><![CDATA[GET F/L]]></JobOper_OpCode> <JobOper_OpDesc><![CDATA[GET FITTING LID]]></JobOper_OpDesc> <JobOper_OpComplete><![CDATA[No]]></JobOper_OpComplete> <JobOper_QtyCompleted><![CDATA[0.00]]></JobOper_QtyCompleted> </ELEC01_SOWaitingParts3> <ELEC01_SOWaitingParts3> <JobOper_JobNum><![CDATA[019564]]></JobOper_JobNum> <JobOper_OprSeq><![CDATA[90]]></JobOper_OprSeq> <JobOper_OpCode><![CDATA[KIT F/L]]></JobOper_OpCode> <JobOper_OpDesc><![CDATA[KIT FITTING LID]]></JobOper_OpDesc> <JobOper_OpComplete><![CDATA[No]]></JobOper_OpComplete> <JobOper_QtyCompleted><![CDATA[0.00]]></JobOper_QtyCompleted> </ELEC01_SOWaitingParts3>[/CODE] As you can see, the JobOper_JobNum is the same for each of the above (bear in mind this is only an extract, the full XML contains lots of different JobOper_JobNum's). In the second line you can see 'JobOper_OprSeq' - 60, 70, 80, 90 However when the …

Member Avatar
Member Avatar
+0 forum 16

Hi, I need the name of the XML tabs. I'll use an example to explain what i want. XML- <?xml version="1.0" encoding="ISO-8859-1"?> [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> <cd> <title>Hide your heart</title> <artist>Bonnie Tyler</artist> <country>UK</country> <company>CBS Records</company> <price>9.90</price> <year>1988</year> </cd> <cd> <title>Greatest Hits</title> <artist>Dolly Parton</artist> <country>USA</country> <company>RCA</company> <price>9.90</price> <year>1982</year> </cd> </catalog> [/CODE] now i want the values as 'title', 'artist', 'country' and so on. i tried to do it through XSL however after all attempts i ended up with the values of title (i.e. Empire Burlesque, Hide your heart, Greatest Hits), artist (i.e. Bob …

Member Avatar
Member Avatar
+0 forum 6

Hi I have to XML files and two XSL and HTML documents. I have a 'master' xml file, but I also have a 'slave'. I cant edit the xml files as they are automatically exported from a software package. Table 1 (master) contains e.g.: Master Job Master Part Qty Child Part Required 0123456 Big Toy 2 Small Toy A False 0123456 Big Toy 2 Small Toy B True 0123456 Big Toy 1 Small Toy C True Table 2 (child - separate xml) contains e.g.: Child Job Child Part Order Date 5564789 Small Toy B 01/05/11 6945311 Small Toy C 09/09/11 …

Member Avatar
Member Avatar
+0 forum 3

Hi, i have the folwing xml, i want to compare the dates Modifyts and ActualDate using XPATH and XSLT and print the date which is newer.Can you please help me regarding this. [CODE]<ABC> <InputDocument> <OrderList LastOrderHeaderKey="2011013111595948350" LastRecordSet="Y" ReadFromHistory="" TotalOrderList="1"> <Order DocumentType="0001" EnterpriseCode="XYZ" Modifyts="2011-02-14T13:53:04+00:00" OrderNo="Y100000042"/> </OrderList> </InputDocument> <EnvironmentDocument> <Order DocumentType="0001" EnterpriseCode="XYZ" MaximumRecords="5000" OrderNo="Y100000042"> <OrderDates> <OrderDate ActualDate="2011-02-15T08:12:13.5551986Z" DateTypeId="ACK_DATETIME"/> </OrderDates> </Order> </EnvironmentDocument> <ABC>[/CODE] Thanks Soumya

Member Avatar
Member Avatar
+0 forum 8

Hi All I have this XSL code, but I am trying to get it so every other row is light grey and the ones in between are white. I want the headers to be anjother colour all together. [CODE] <?xml version='1.0'?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"> <xsl:template match="/"> <html> <body> <table border="2" bgcolor="yellow"> <tr> <th>OrderNum</th> <th>Date</th> </tr> <xsl:for-each select="ExportQuery/ELEC01_SalesOrdersWaitingParts[NotEnoughStock='TRUE']"> <tr> <td class="class"><xsl:value-of select="OrderHed_OrderNum"/></td> <td class="class"><xsl:value-of select="OrderHed_OrderDate"/></td> </tr> </xsl:for-each> </table> </body> </html> </xsl:template> </xsl:stylesheet> [/CODE] Any help would be greatly appreciated. Thanks.

Member Avatar
Member Avatar
+0 forum 2

Hello, I have a large XML i am recovering data from. However,i cant seem to get more then 2 parameters out,whatever i type. i tried the following things already(without succes) -Made a substring-between -Made an extra call to a template and clarified additional parameters -Changed the values of the xpath expressions themselves [CODE]<xsl:template name="output-tokens"> <xsl:param name="list" /> <xsl:param name="delimiter" /> <xsl:param name="test"/> <xsl:param name="teller"/> <xsl:param name="firstrow"/> <xsl:param name="list1">Artikelnummer</xsl:param> <xsl:param name="list2">Omschrijving</xsl:param> <xsl:param name="list3">Afbeelding</xsl:param> <xsl:param name="list4">Prijs</xsl:param> <xsl:param name="list5">Verpakking</xsl:param> <xsl:param name="list6">Besteleenheid</xsl:param> <xsl:param name="list7">Prijseenheid</xsl:param> <xsl:param name="list8">Verp. per</xsl:param> <xsl:param name="list9">Vrij_1</xsl:param> <xsl:param name="list10">Vrij_2</xsl:param> <xsl:param name="list11">Vrij_3</xsl:param> <xsl:param name="list12">Vrij_4</xsl:param> <xsl:param name="list13">Vrij_5</xsl:param> <xsl:param name="list14">Vrij_6</xsl:param> <xsl:param name="list15">Vrij_7</xsl:param> <xsl:variable name="newlist"> <xsl:choose> …

Member Avatar
Member Avatar
+0 forum 2

hi all, please can u help me, it's urgent and i'm working on it about 5 days without result i have a xml file: [CODE] - <Menus> - <UsersMenu> <ID>1</ID> <Text>Button1</Text> - <UsersMenu> <ID>2</ID> <Text>B1I1</Text> <link>template.aspx</link> <parent>1</parent> </UsersMenu> - <UsersMenu> <ID>3</ID> <Text>B1I2</Text> <parent>1</parent> - <UsersMenu> <ID>6</ID> <Text>B1I2I1</Text> <link>template.aspx</link> <parent>3</parent> </UsersMenu> </UsersMenu> - <UsersMenu> <ID>4</ID> <Text>B1I3</Text> <parent>1</parent> - <UsersMenu> <ID>5</ID> <Text>B1I3I1</Text> <link>template.aspx</link> <parent>4</parent> </UsersMenu> </UsersMenu> </UsersMenu> </Menus> [/CODE] i want to pass it to xsl template to have this output: [CODE] <div class="arrowlistmenu"> <h3 class="menuheader expandable">Button1</h3> <ul class="categoryitems"> <li><a href="template.aspx">B1I1</a></li> <li><a href="template.aspx" class="subexpandable">B1I2</a> <ul class="subcategoryitems" style="margin-left: 15px"> <li><a href="template.aspx">B1I2I1</a></li> </ul> </li> …

Member Avatar
Member Avatar
+0 forum 2

Hello everyone, I am a beginning programmer using XSLT. I work at a company wich has a database witch generates catalogs, exporting XSL and XML to FOP.(wich converts to PDF). the program runs on apache and is build in delphi. That being said, I was wondering if it is possible to put 2 tables next to eachother on the same page,Horizontally. I have not been able to find this yet,Nor did i find any complete examples. Is there an easy way to do this? With kind greetings, Henk.

Member Avatar
Member Avatar
+0 forum 3

Hi there, I'm having some trouble formatting the date that appears underneath each "News" post on the following page - [URL="http://www.rjt-online.com/home.php"]www.rjt-online.com/home.php[/URL] Here is the code for the XSL file that is being pulled into the above page with php. The xsl file is pulling in an RSS feed from my Wordpress blog: [CODE]<?xml version="1.0" encoding="utf-8"?><!-- DWXMLSource="http://www.rjt-online.com/wp/?feed=rss2&cat=23" --> <!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "&#160;"> <!ENTITY copy "&#169;"> <!ENTITY reg "&#174;"> <!ENTITY trade "&#8482;"> <!ENTITY mdash "&#8212;"> <!ENTITY ldquo "&#8220;"> <!ENTITY rdquo "&#8221;"> <!ENTITY pound "&#163;"> <!ENTITY yen "&#165;"> <!ENTITY euro "&#8364;"> ]> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/"> …

Member Avatar
Member Avatar
+0 forum 3

Hello Im very new to the XSLFO. I have a requirement to color a text entry with a suitable background color which i do using the snippet [CODE]<fo:inline color = "red" background-color = "yellow"> <xsl:value-of select="."/> </fo:inline>[/CODE] With the above snippet i am able to set the forecolor of the text to RED but not the background color. Though I can add background color using [CODE]<fo:inline color = "red"> <fo:block background-color = "yellow"> <xsl:value-of select="."/> </fo:block> </fo:inline>[/CODE] But this is making my entry come on a separate line which isnt my requirement Although the xslfo documentation says there is a …

Member Avatar
+0 forum 0

Hi..i am new with xml and xsl. I have the input xml as: <?xml version="1.0" ?> <Employee> <EmployeeDetails EmployeeName="JohnnyWalker" EmployeeId="12345" CompanyName="ABC Inc." CompanyAddress="Bangalore" ContactNo="0000000" /> </Employee> -------------------------------------------- I want the output xml as: <Employee> <EmployeeDetails JohnnyWalker="12345" CompanyName="ABC Inc." CompanyAddress="Bangalore" ContactNo="0000000" /> </Employee> i need to do this using xsl.....can anybody please help??

Member Avatar
Member Avatar
+0 forum 1

hello guys! i'm quite new here and i'm probably posting this on the wrong place, but hey, here goes nothing! :P so, i have this lovely XML (not!) that was obtained through a yahoo pipe, and had a JSON decode, in order to transform it in a XML that could be stored in a MySQL database. [CODE]<?xml version="1.0" encoding="ISO-8859-1"?> <json> <count>16</count> <value> <title>uniprot 7</title> <description>Pipes Output</description> <link>http://pipes.yahoo.com/pipes/pipe.info?_id=0ef2cf38a34d6aef3392b6996ef41108</link> <pubDate>Sat, 03 Apr 2010 19:17:42 +0000</pubDate> <generator>http://pipes.yahoo.com/pipes/</generator> <callback /> <items> <content>BPTF_HUMAN</content> <description /> <title /> </items> <items> <alternativeName> <fullName>Bromodomain and PHD finger-containing transcription factor</fullName> </alternativeName> <alternativeName> <fullName>Fetal Alzheimer antigen</fullName> </alternativeName> <alternativeName> <fullName>Fetal Alz-50 …

Member Avatar
+0 forum 0

Hello guys! I am very new to XSLT and am getting stuck in a very annoying problem. I have got a XSL file within with there is a part of code to book a place. Here is the code; [CODE]<xsl:when test="seats &gt; 0"> <td> <input onclick="sendBookRequest();" type="button" value="book"> <xsl:attribute name="onclick">sendBookRequest(<xsl:value-of select='id' />)</xsl:attribute> </input> </td> </xsl:when>[/CODE] I want to add an input box where the user can enter some value and pass both the 'id' value (which i can already pass) as well as the user input value. But I can't even figure out the syntax; can anyone guide me somewhere …

Member Avatar
+0 forum 0

Is it possible to apply XSLT on XML output from a Perl CGI script? I.e. I have a registration form, when submitted it makes an Ajax request, building a query string from the form inputs. The request is made to a Perl CGI script. This script can be called two ways, both using Ajax. The first simply reads an XML file, and outputs the file, and Ajax sticks it in a div container. The other way (via form submission and the query string), actually appends the form data to the XML file, e.g.: [code] <root> <entry>data</entry> </root> [/code] now becomes: …

Member Avatar
+0 forum 0

Hi. I am trying to build simple web application in ASP.NET. I have xml file with data and xsl file to transform xml file into html doc which will be presented in the browser window and everything is working fine. What funcionallity do I want? I want user to enter some text into textboxes and I want this data to be saved into source xml file by clicking for example Save button - I think that it is reversion of transformation process (from html into xml). Can I do something like that? Is it hard to achieve? regards

Member Avatar
Member Avatar
+0 forum 1

Here is a sample of the XML that I am starting with: XML: any.xml [code] <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="any.xsl"?> <root> <device> <device_Info> <name>Name 1</name> <type>Type</type> </device_Info> <drive_Pair> <status>Ready</status> <Local> <l_name>10E5</l_name> </Local> <Remote> <l_name>0651</l_name> </Remote> </drive_Pair> #Can be 1 or many <drive_Pair>'s {<drive_Pair> ... </drive_Pair>} # Can only be 1 Totals <Totals> <Local> <l1_invalid_mbs>0.0</l1_invalid_mbs> <l2_invalid_mbs>0.0</l2_invalid_mbs> </Local> </Totals> </device> #Can be 1 or many <device>'s {<device> ... </device>} </root> [/code] XSL: any.xsl [code] <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xml" version="1.0" standalone="yes" cdata-section-elements="devices" indent="yes"/> <xsl:template match="/root/device"> <xsl:element name="devices"> <xsl:for-each select="device_Info"> <device name="{name}" type="{type}"/> </xsl:for-each> <xsl:for-each select="drive_Pair"> <drive_Pair status="{status}" local="{Local/l_name}" remote="{Remote/l_name}"/> </xsl:for-each> <xsl:for-each …

Member Avatar
Member Avatar
+0 forum 3

The End.