How to escape the double quotes using XSLT: My xls file converting xml file into csv file. my xml node is as below: <?xml version="1.0" encoding="ISO-8859-1"?> <TRADING_TITLE><TITLE>SBU</TITLE><DESCRIPTION><![CDATA[Simply Be Inquiries]]></DESCRIPTION><REGISTERED><NAME><![CDATA[Speciality Home Shopping (US) Limited]]></NAME><ADDRESS1><![CDATA[Griffin House]]></ADDRESS1><ADDRESS2><![CDATA[40 Lever Street]]></ADDRESS2><ADDRESS3><![CDATA[Manchester]]></ADDRESS3><ADDRESS4><![CDATA[United Kingdom]]></ADDRESS4><ADDRESS5><![CDATA[M60 6ES]]></ADDRESS5></REGISTERED><WEB_ADDRESS>www.simplybe.com</WEB_ADDRESS><COMPANY_NUMBER>03941468</COMPANY_NUMBER><ENQUIRY_DAYS_PER_WEEK>7</ENQUIRY_DAYS_PER_WEEK><ENQUIRY_TEL_NO>18774074675</ENQUIRY_TEL_NO><ORDER_TEL_NO>18774074675</ORDER_TEL_NO><ORDERLINETIMES><WEEKDAY_OPEN>8am</WEEKDAY_OPEN><WEEKDAY_CLOSE>11pm</WEEKDAY_CLOSE><SATURDAY_OPEN>8am</SATURDAY_OPEN><SATURDAY_CLOSE>11pm</SATURDAY_CLOSE><SUNDAY_OPEN>8am</SUNDAY_OPEN><SUNDAY_CLOSE>11pm</SUNDAY_CLOSE></ORDERLINETIMES><ENQUIRYLINETIMES><WEEKDAY_OPEN>8am</WEEKDAY_OPEN><WEEKDAY_CLOSE>11pm</WEEKDAY_CLOSE><SATURDAY_OPEN>8am</SATURDAY_OPEN><SATURDAY_CLOSE>11pm</SATURDAY_CLOSE><SUNDAY_OPEN>8am</SUNDAY_OPEN><SUNDAY_CLOSE>11pm</SUNDAY_CLOSE></ENQUIRYLINETIMES><CORRESPONDENCE><NAME><![CDATA[Simply Be Inquiries]]></NAME><ADDRESS1><![CDATA[777 South State Road 7]]></ADDRESS1><ADDRESS2><![CDATA[Margate, Florida 33068]]></ADDRESS2><ADDRESS3/><ADDRESS4/><ADDRESS5/></CORRESPONDENCE><TRADING_AS_INDICATOR>Y</TRADING_AS_INDICATOR><REGISTERED_NUMBER>03941468</REGISTERED_NUMBER><BRAND_LOGO_NUMBER>DAL90</BRAND_LOGO_NUMBER><FSA_TEXT><![CDATA["Simply Be" is a trading name of Speciality Home Shopping (US) Limited, registered in England with Co No. 03941468 and registered office at Griffin House, 40 Lever Street, Manchester UK M60 6ES]]></FSA_TEXT></TRADING_TITLE> I want to replace " with "" in whole XML file.Please help. My xls file is as below: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="text" …

Member Avatar
Member Avatar
+0 forum 1

Hello experts, I am new to XSLT, SInce I am working integration project where we have XML to XML conversion using XSLT There is one line of code which I am not understanding <xsl:when test="following-sibling::*[2]/CreditOrDebitTransactionType='54'"/> Can anyone explain what this code does , and "CreditOrDebitTransactionType" what this does , This is not field Thanking you in Advance

Member Avatar
Member Avatar
+0 forum 1

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

Hi What would be a good recommendation for a practical resources on using xml, xpath and xquery? By practical I mean. Accessing values, storing files, creating set queries on xml to create a feed to push data to other applications (eg ipython, rstudio, the Web) maintaining data integrity, and transformng data types. Note I have completed the [W3c tutorials](http://www.w3schools.com/xml/). Thank you for taking time to help me. Sayth

Member Avatar
Member Avatar
+0 forum 1

Is it possible to count the instances of a for-each boolean statement. for example, say you have patients in a hospital and certain criteria must be met to discharge them. 100(%0) health would equal a discharge, pseudo code would read something like this: totalHealth - HighTemperature + medication * recoveryPeriod could you then have a choose statement to count the number of patients discharged or still in hospital? eg <xsl:choose> <xsl:when test="(totalHealth - HighTemperature + medication * recoveryPeriod) &gt; = 90"> Discharged Patients - <xsl:value-of select="count(true)"/> </xsl:when> <xsl:otherwise> Current Patients - <xsl:value-of select="count(false)"/> </xsl:otherwise> <xsl:choose> I know this code is …

Member Avatar
Member Avatar
+0 forum 9

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

For the following xml file, i need to generate an xsl-fo file to be converted into pdf. I am new to style sheets and struggling to create dynamic table. Please help. Also, the width for each column varies,based on the column.How would i include this into the code? The Column Headers and Column Values are dynamically populated in the xml file. Below is a sample. Can anybody please help in generating xsl-fo or xslt code? <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ReportData> <ColumnHeaders> <ColumnHeader> <Name>Col-Header1</Name> <Width>5</Length> </ColumnHeader> <ColumnHeader> <Name>Col-Header2</Name> <Width>10</Length> </ColumnHeader> <ColumnHeader> <Name>Col-Header3</Name> <Width>8</Length> </ColumnHeader> </ColumnHeaders> <Rows> <Row> <Column>Row1-Col1</Column> <Column>Row1-Col2</Column> <Column>Row1-Col3</Column> </Row> …

Member Avatar
+0 forum 0

I have a situation in xsl where I had a param value that will be assigned some where in xslt transformation. But I get that param as a String , that param may contains a node a unbounded[0 or more repetitions] . How can I use param in for each as just any other xml content as used by any xpath expression. Here is my sample xmls: RetreiveData.xml <soap-content> ------ <return> <!--0 or more repetitions>--> <data> <startdate>12-12-12</startdate> <enddate>12-12-13</enddate> <nooftrans>5</nooftrans> </data> <data> ---- </data> </soap=content> This is my sample file which will be sent as param to xsl xsl file: <xsl …

Member Avatar
+0 forum 0

Hi I have been reading so many tutorials but can't seem to get anywhere, with what I thought would be a simple task. I have an xml file outputted from some software in the vague format: <root> <one>data</one> <two>more data</two> <three> even more data</three> </root> Fairly straight forward data, nothing really nested. All I am trying to do is use an xslt file to transform this xml into a new XML file, but with only a few selected fields, e.g. the same structure as before, but only one of the tags I have tried so many different methods, and I …

Member Avatar
Member Avatar
+0 forum 3

I think this simple example might ask the question a lot more clearly. I have an input file with multiple products. There are different types of product (2 types with 2 product IDs is fine enough for this example), but the input will have many more. I only want to output the info for the first product of each type that I encounter in the for each Product loop. (I'm outputting info for the lowest priced product, so the first one will be the lowest price because I sort by Rate first.) So I want to read in each product, …

Member Avatar
Member Avatar
+0 forum 3

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, Can someone help me on this. Really appreciated. **Requirement:** 1. To generate separate html files for each pal:fragment element, for the source document attached ,the files gets name based on @fragment-id which is present on the pal:fragment elements. 2. The <pal:fragment> can be nested, wrapped with<div> element. 3. The fragmented file not only should include all child elements of pal:fragment, but also should include its ancestor <div> element. Each separate file generated from <pal:fragment should not include the content of its descendant <pal:fragment content. See below examples for requirement understanding *example1*: if a fragment file is generated for <pal:fragment …

Member Avatar
+0 forum 0

I want to merge 2 XMLs based on a particular condition. e.g: Sample1.xml: <rootNode> <header> <title agg="sum">1</title> <records agg="sum">10</records> <number agg="min">5</number> <header> </rootNode> Sample2.xml <rootNode> <header> <title agg="sum">2</title> <records agg="sum">20</records> <number agg="min">15</number> <header> </rootNode> I want that these two xml files should be merged based on the attribute specified within the tag i.e "agg".if agg="sum" then title from sample1.xml and sample2.xml should get added. Output should be like: output.xml <rootNode> <header> <title agg="sum">3</title> <records agg="sum">30</records> <number agg="min">5</number> <header> </rootNode> Kindly provide XSLT for this. Thanks.

Member Avatar
Member Avatar
+0 forum 5

Hello Guys, Just wanted to ask on how to get the author names in the given xml sample below and put an attribut of eq="yes". EQ means Equal Contributors. This is the XML. <ArticleFootnote Type="Misc"> <Para>John Doe and Jane Doe are equal contributors.</Para> </ArticleFootnote> This should be the output in other form of XML. <AuthorGroups> <Authors eq="yes">John Doe</Authors> <Authors eq="yes">Jane Doe</Authors> </AuthorGroups> Assuming that JOhn Doe and Jane Doe are already defined in the list of authors but after the transformation, author tag should have the attribute eq="yes". Please help as I don't know much writing in xlst. Thanks in …

Member Avatar
Member Avatar
+0 forum 1

I have created a userConfig file to add MSGOTHIC font to FOP. <fop version="1.0"> <renderers> <renderer mime="application/pdf"> <fonts> <!-- register a particular font --> <font metrics-url="file:/tmp/msmsgothic.xml" kerning="yes" embed-file="file:/tmp/msgothic.ttf"> <font-triplet name="MSGothic" style="normal" weight="normal"/> </font> <font metrics-url="file:/tmp/msmsgothic.xml" kerning="yes" embed-file="file:/tmp/msgothic.ttf"> <font-triplet name="MSGothic" style="normal" weight="bold"/> </font> </fonts> </renderer> </renderers> </fop> Now I have set the config in my fop object : FOUserAgent foUserAgent = fopFactory.newFOUserAgent(); fopFactory.setUserConfig(userConfigFile); The font is getting registered as I can see in logs. org.apache.fop.fonts.FontInfo: Registering: MSGothic,normal,400 under F15 org.apache.fop.fonts.FontInfo: Registering: MSGothic,normal,700 under F16 But it is not being found while lookup: Fri Aug 17 15:40:11 2012 GMT VendorPaymentsInvoiceRealTimeWorkerService12614-0@shrgupta.desktop.amazon.com:0 [TRACE] (pool-1-thread-1) …

Member Avatar
+0 forum 0

I'm trying to write a transform to parse an html document and create another html document but I can't seem to use the html tags in the xslt. My html source that I want to apply the transform on looks like this: <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> </head> <body class="3-column"> <div class="centercol"><p>Hello world</p></div> <div class="leftcol"> <div id="menu"> </div> </div> <div class="rightcol"> </div> </body> </html> My XSLT looks like this: <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" version="1.0"> <xsl:template match="/*"> <xsl:value-of select="body/div/p"/> </xsl:template> </xsl:stylesheet> Can anyone help me figure out how to get my xpaths to work with html tags?

Member Avatar
Member Avatar
+0 forum 1

Need an xslt to convert xml into json. I have a xml file which is having 3 attributes. The value in the 3rd attribute is another xml file. I need an xslt which can read the value of the 3rd attribute as another xml (not just a value) and can convert it into json format. <?xml version="1.0"?> <ResultSet> <attribute1>123</attribute1> <attribute2>456</attribute2> <attribute3> <?xml version="1.0"?> // Need this xml (i.e. value of third attribute) to be converted into Json <NewResultSet> <rowset> <node1>111</node1> <node2>222</node2> </rowset> <rowset> <node1>333</node1> <node2>444</node2> </rowset> </NewResultSet> </attribute3> </ResultSet>

Member Avatar
Member Avatar
+0 forum 1

Hi, I'm probably missing something really simple or trying too much at once but it's 16:30 on a Friday afternoon and my head is wrecked!! Basically, I'm trying to build an application that takes out put from a database query as XML and uses XSL to transform it into HTML which is then displayed in a web browser controll on another form. I thought I break it up into pieces so I decided to just create an XML file and an XSL stylesheet and read this into the web browser control but all I'm getting is `<HTML></HTML>` !! Here is …

Member Avatar
Member Avatar
+0 forum 1

> 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 result > Quoted Text Here Wellness Week <div class="ExternalClassAE181F1178854D1387770B8F397CE92E"> <span style="color:rgb(102, 102, 102);font-family:tahoma;background-color:rgb(216, 211, 197)"> We are having a wellness week starting April 1st, 2012 till April 7th, 2012. </span> </div> <div class="ExternalClassAE181F1178854D1387770B8F397CE92E"> <span style="color:rgb(102, 102, 102);font-family:tahoma;background-color:rgb(216, 211, 197)"> <br /></span></div> Flu Shots Coming Soon <div class="ExternalClass237E06C33F994D6C96E297EA04755B2B"> <p> ​<span style="font-family:tahoma">Morbi …

Member Avatar
-2 forum 0

Firstly I will say im a complete and total novice when it comes to XSLT and XML so this could be a very obvious mistake on my behalf. [CODE] <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="node()"> <xsl:copy> <xsl:copy-of select="@*"/> <xsl:apply-templates/> </xsl:copy> </xsl:template> <xsl:template match="TestNode"> <RenamedNode> <xsl:copy-of select="."/> </RenamedNode> </xsl:template> </xsl:stylesheet> [/CODE] When running the above, even though <TestNode> exists it does not match and rename the node and I cannot figure out why :/ Is anyone able to shed some light on why this is the case? Thanks in advance

Member Avatar
Member Avatar
+0 forum 4

In an XSLT file, I am calling a function to a javascript file (.ascx) and trying to pass parameters. One parameter is a Date() object. The only way I've found to successfully pass it is to pass it as a string. Here's the code from the XSLT file. [CODE]<script> grouping("<xsl:value-of select ="Date1"/>", <xsl:value-of select ="ID"/>); </script>[/CODE] Here's my function in Javascript. [CODE]function grouping(date, num) { // Date is now a string instead of a Date() object }[/CODE] What I want to do is keep the date object a date object and not a string. Anyone know how to do this? …

Member Avatar
Member Avatar
+0 forum 2

Hello everyone, I am studying XML, XPath, XQuery, XSLT on my own and I want to sharpen my skills working on opensource projects. I am searching on Apache and other websites but the projects are too huge and in much advanced stage to start working on. I want to get your opinions regarding this: Can you recommend any projects which i can contribute in. Is working on an opensource project to build expertise a right direction. thanks for your replies.

Member Avatar
Member Avatar
+0 forum 1

Hi there, I have a very simple schema where each node requiring HTML output contains 7 possible numerical variables (all within nodes N1 - N13). I need to output text and image content according to the number within each node. Below is a sample of my schema: [CODE] <?xml version="1.0" encoding="ISO-8859-1"?> <?xml-stylesheet type="text/xsl" href="results.xsl"?> <Alias xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" Name=\"d3b704a9730d4e6b8420187f0384cab5\"> <Age>40</Age> <BMI>28.98</BMI> <HipToWaist>0.9</HipToWaist> <Height>1.93</Height> <Weight>107.96</Weight> <N1>5</N1> <N2>6</N2> <N3>3</N3> <N4>5</N4> <N5>3</N5> <N6>1</N6> <N7>3</N7> <N8>5</N8> <N9>7</N9> <N10>4</N10> <N11>7</N11> <N12>7</N12> <N13>7</N13> </Alias> [/CODE] Having read a few other forums I am slightly confused as to the cleanest way to output the html. This is an …

Member Avatar
+0 forum 0

Hi all, I've got my xml displaying correctly using php and the xsl template below, but I only want to display properties with a type of either apartment or unit, and have more than 2 bedrooms. I can't for the life of me work this out. I've tried using <xsl:choose>, <xsl:when test=""> etc etc, but I just can't get it. Can you use these elements when transforming xml to xml? Any help would be greatly appreciated. Here is the currentl xsl sheet: [CODE]<xsl:template match="/"> <xsl:element name="RentalProperties"> <xsl:apply-templates select="rentalProperties/property"/> </xsl:element> </xsl:template> <xsl:template match="rentalProperties/property/type"> <xsl:element name="type" > <xsl:value-of select="."/> </xsl:element> </xsl:template> <xsl:template …

Member Avatar
Member Avatar
+0 forum 3

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

I am new to XSLT and am trying to solve the following transformation. I have an XML that looks like this... [CODE]<Groups> <Group> <GroupSelector>52</GroupSelector> <GroupDescription>Group 52</GroupDescription> <GroupValue>ABCD</GroupValue> </Group> <Group> <GroupSelector>27</GroupSelector> <GroupDescription>Group 27</GroupDescription> <GroupValue>PQRS</GroupValue> </Group> <Group> <GroupSelector>20</GroupSelector> <GroupDescription>Group 20</GroupDescription> <GroupValue>XYZA</GroupValue> </Group> <Group> <GroupSelector>15</GroupSelector> <GroupDescription>Group 15</GroupDescription> <GroupValue>MNOP</GroupValue> </Group> </Groups> [/CODE]There may be 0 to n number of 'Group's I am trying to apply an XSLT to find a 'Group' where 'GroupSelector' value is 20 and create output like this; [CODE]<GroupSelection ElementName="FoundGroup" Missing="false">20</GroupSelection> <GroupSelection ElementName="GroupDes" Missing="false">Group 20</GroupSelection> <GroupSelection ElementName="GroupVal" Missing="false">XYZA</GroupSelection> [/CODE]If none of the n 'Group's have a 'GroupSelector' with value 20, the …

Member Avatar
Member Avatar
+0 forum 1

Hi i'm new to xslt the below code for getting chart in pdf after clicking the chart checkbox [CODE] <xsl:if test="$chartimage"> <fo:block text-align="center" space-after="8em"> <fo:external-graphic xmlns:fo="http://www.w3.org/1999/XSL/Format" scaling="uniform"> [B]<xsl:attribute name="src">[/B] <xsl:value-of select="concat(concat('url(',$chartimage),')')" /> </xsl:attribute> </fo:external-graphic> </fo:block> <xsl:if test="$chartPageBreak='true'"> <fo:block break-after="page" /> </xsl:if></xsl:if> [/CODE] bold coded setted attribute name through that they are getting url this is happening when the chart checkbox clicking this below code for getting table without condition i can get by default but i disable the check box of table the table also coming with the chart. i don't know how to fix it. this are in the …

Member Avatar
+0 forum 0

I am trying to run this XPath expression (that is, trying to count how many element content strings in my XML file end with letter-one-f ('a') or letter-two-f ('A'): [code=xslt]<xsl:value-of select="count( substring(.,string-length(.) -1,string-length(.) -1)=$letter-one-f or substring(., string-length(.) -1,string-length(.) -1)=$letter-two-f )"/>[/code] but I don't know how to refer to the 'current value'. All I know is that it's usually represented by a dot '.' . I don't know where to put 'template match' or if that is even needed. This code, on the other hand, works, because I have specified that it should look in '/n-grams-sorted/n-gram': [code=xslt]<xsl:value-of select="count(/n-grams-sorted/n-gram[starts-with(.,$letter-one-f) or starts-with(.,$letter-two-f) ])"/>[/code] …

Member Avatar
Member Avatar
+0 forum 2

Since it's been about three years since I had to write any XSLT, I'd like some assistance with the code below. [CODE]<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> <xsl:output method="text"/> <xsl:template match="/"> <xsl:for-each select="/WatchConfig/ProcessList/Process/Node"> <xsl:if test="Plugin = 'PWScript'"> <xsl:text> </xsl:text> <xsl:value-of select="Config" disable-output-escaping="yes" /> <xsl:text> ************************************************************************ </xsl:text> </xsl:if> </xsl:for-each> </xsl:template> </xsl:stylesheet>[/CODE] The code above works fine. It outputs the value of the Config element, a child of /WatchConfig/ProcessList/Process/Node, when the "Plugin" sibling value equals "PWScript". In other words, Node contains Config and Plugin, and when Plugin = PWScript, output the value of Config. So far so good. However, sometimes the Node …

Member Avatar
+0 forum 0

Hi All, I am new to XML,XSLT. I have been assigned to task of Generating HTML pages based on the XML file & the condition is No Hardcoding of Nodes and other details. My XML file is of the below struct: Node inside Nodes , and those nodes would contain any number of attribuites or elements. Now i need to knw , is there any Generic XSLT Algorithm to can do the above job and render the HTML page in the form of Navigation Tabs? Please advice...

Member Avatar
Member Avatar
+0 forum 7

The End.