428 Topics

Member Avatar for
Member Avatar for vbhatia.81

Hi I am new to xslt and i was trying to generate a generic xml from the plmxml. Following is the plmxml.xml file [code] <?xml version="1.0" encoding="utf-8"?> <PLMXML xmlns="http://www.plmxml.org/Schemas/PLMXMLSchema" schemaVersion="6" date="2008-12-02" time="15:33:22" author="Teamcenter V2007.1.3.20080417.00 - PLM@TCLICSRV(498908465)"> <Product id="id2" name="Test" accessRefs="#id3" subType="Item" productId="000019"></Product> </PLMXML> [/code] ------------------------------------------------------- And in the output i …

Member Avatar for fauziya
0
1K
Member Avatar for f_atencia

<comment> <content> This is a really long string. It is really long because it contains plenty of characters. The purpose of this exercise is to separate this content element into blocks containing one hundred each </content> </comment> I have the XML file above and I need to use XSLT to …

Member Avatar for f_atencia
0
140
Member Avatar for ibdatx

Hi all, I want to transform an xml file to another xml file based on the length of innertext in an element. Here is an example of the file to be transformed: [CODE] <?xml version="1.0" encoding="utf-8"?> <recipe xmnls=""> <recipeList> <recipeType description="Breakfast"> <recipeInfo> <name>Omelet</name> <summary>An English Breakfast</summary> <ingredients>Eggs,Butter</ingredients> <instructions>(1) You will …

Member Avatar for iceandrews
0
246
Member Avatar for stljim

Hello everyone, I'm _very_ new to xml, especially converting using an xslt. Here's my source XML generated by Eeye Retina. This data is being used by MS Access and I don't need all the data from the original XML. When I try to run the MS Access app I get …

Member Avatar for iceandrews
0
288
Member Avatar for achava

I have an xhtml document that contains many lines that look like: <div style="position:absolute;top:224;left:108">The line was longer than we expected</div> For my first trick I need to be able to match or select this node and others like it, where like it means that it is a div tag with …

Member Avatar for achava
0
187
Member Avatar for ozkanb

Hi, For example my xml looks like this: [code] <root> <Book_information> <bookTitle>Lorem 1</bookTitle> <choices>test1</choices> <choices>test2</choices> <choices>test3</choices> <choices>test4</choices> <choices>test5</choices> <choices>test6</choices> <calendar>2010-12-30</calendar> <calendar>2011-01-12</calendar> <calendar>2011-03-10</calendar> </Book_information> </root> [/code] I need to loop the elements "Choices"... How can i do this? I know how to work with the for each loop, but i don't …

Member Avatar for xml_looser
0
117
Member Avatar for aplh_ucsc

Hi. I'm new to xml. This is my sample codes. [CODE]<!-- library1.xml --> <?xml version="1.0" encoding="utf-8"?> <?xml-stylesheet type="text/xsl" href="library.xsl"?> <lib> <book> <name>Modern Operating System</name> <author>Andrew S. Tanenbaum</author> <edition>3rd Edition</edition> <price>1500</price> <ISBN>978-81-203-3904-1</ISBN> </book> <book> <name>PHP and MySQL Web Development</name> <author>Luke Welling and Laura Thomson</author> <edition>4th Edition</edition> <price>1200</price> <ISBN>672-32672-8</ISBN> </book> <book> <name>Rapid …

Member Avatar for iceandrews
0
153
Member Avatar for ilyaz

Suppose I have the following collection of "word" elements: [CODE] <word> <id>1</id> <text>My</text> </word> <word> <id>2</id> <text>name</text> </word> <word> <id>3</id> <text>is</text> </word> <word> <id>4</id> <text>Joe</text> </word> [/CODE] Given an integer ID value, in order to find the corresponding TEXT, I can do this: [CODE] <xsl:key name="word-by-id" match="word" use="id"/> return key('word-by-id', …

Member Avatar for fpmurphy
0
159
Member Avatar for ilyaz

I have the following segment inside my XSLT transform: [CODE] <property name="Value"><xsl:value-of select="for $index in ...[/CODE] msxsl.exe produces the following error: [I]Code: 0x80004005 Expected token 'EOF' found '$'. for -->$<--index in ...[/I] Is this a syntax error? The code before the shown segment seems to be fine. What am I …

Member Avatar for iceandrews
0
136
Member Avatar for Ossehaas

Ok here is the problem, I got a 2 column page and I need the background color of a fo:block-container to flow like this: 1. Left column: left side page to center page 2. Right column: center page to right side page 3. Top: where block-container starts 3. Bottom: bottom …

Member Avatar for Ossehaas
0
539
Member Avatar for sajohnson05

I need help trying to get the majors "CSAT" and "ISAS" into the Majors/Concentration column and then have the corresponding course numbers with commas. Any Help XML Code [code]<?xml version="1.0"?> <!-- coursinfo.xml, uses three XSLT stlyesheets to create the desired view of the data ITEC 325 - assignment --> <?xml-stylesheet …

Member Avatar for sajohnson05
0
204
Member Avatar for bangaram9

need an xslt for a collection control that produces the below: <ul> <li>{quicklink}</li> <li>{quicklink}</li> <li>{quicklink}</li> <li>{quicklink}</li> <li>{quicklink}</li> <li>{quicklink}</li> <li>{quicklink}</li> <li>{quicklink}</li> </ul> <ul> <li>{quicklink}</li> <li>{quicklink}</li> <li>{quicklink}</li> <li>{quicklink}</li> <li>{quicklink}</li> <li>{quicklink}</li> <li>{quicklink}</li> <li>{quicklink}</li> </ul> The key here is to have a count on the items. After the 7th item, it needs to start …

Member Avatar for iceandrews
0
101
Member Avatar for niki_97

Hi all, I've been trying to use a lookup table in order to find a text prompt according to the key(@name) that is retrieved from the source xml. Here follows snippets of my xml and xsl. It all looks to be correct, but it's not displaying the prompt text... I …

Member Avatar for iceandrews
0
821
Member Avatar for achava

This one ought to be extremely easy for experienced xslt-ers. I have an html file, and in it are things like <div class="ghoul"></div> <div class="vampire></div> and so on. In my stylesheet, I have different things to do with the div's depending on the class. So I have <xsl:template match="div"> <xsl:choose> …

Member Avatar for achava
0
574
Member Avatar for NewbieProgram

I need to select attributes from my XML file and output the info into a table using XSL, need to output day name, instructor and class being taught, the problem is that I have multiple attirubtes within each group. my XML: <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="g4.xsl"?> <schedule> <student_info> Vitaliy Berkovich …

Member Avatar for NewbieProgram
0
2K
Member Avatar for chou73

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> …

Member Avatar for chou73
0
226
Member Avatar for BLY

Hi I'm trying to create a choosing statement by using a link ie [CODE] if(Link == google) run something else (Link == yahoo) [/CODE] Meaning that if the declared link is google it will do something else if it will load yahoo Here's what i'm thinking how the code is …

Member Avatar for BLY
0
113
Member Avatar for Rajicet

I have to display a <div> data in a loop in XSL.But the below code is not working. Please help. <script> i=3; for(i=0;i <xsl:text disable-output-escaping="yes">&lt;</xsl:text> count;i++) { </script> div style="float:left;background-color:#D3D3D3;width:100">test</div> <script> } </script>

Member Avatar for minamo99
0
90
Member Avatar for saraswathy6

Hi, I have an xml like this <agency count="133">GOV.NIH.XYZ.465.56</agency> <agency count="129">GOV.NIH.ABC.245.21</agency> <agency count="216">GOV.NIH.NCI.456.23</agency> <agency count="48">GOV.USDA.4412.345.08</agency> <agency count="46">GOV.USDA.1411.345.00</agency> <agency count="51">GOV.USDA.5512.231.05</agency> <agency count="42">GOV.USDA.1411.16.10</agency> <agency count="39">GOV.USDA.5512.16.12</agency> <agency count="32">GOV.USDA.1411.17.03</agency> <agency count="60">GOV.FDA.4412.33.56</agency> <agency count="59">GOV.FDA.4410.45.87</agency> <agency count="55">GOV.FDA.1411.56.213</agency> <agency count="60">GOV.FDA.1412.86.45</agency> <agency count="55">GOV.FDA.1431.32.45</agency> I need to sort them based on the coutn for each agency . The results …

Member Avatar for iceandrews
0
141
Member Avatar for glfnute

This is the usual "I'm new to XSLT and need help" plea ... I am trying to parse an XML document and create a "like" structure as output while performing some mapping functions. In trying to produce the output structure, I cannot seem to figure out how to get at …

Member Avatar for fpmurphy
0
137
Member Avatar for achava

Have I got a problem. I am quite new to xslt, and I have the following situation. I am presented with an xml file. I only want to extract the text in four of the tags present in the document. My first approach was to create a template for each …

Member Avatar for iceandrews
0
164
Member Avatar for hanuinfy

Hi, I am new to XSLT, Please helo me in transforming the XML to XML transform I have XML like this <products> <product> <display value="32" /> <count value="0"/> </product> </products> Through XSLT I need to convert it like this <products> <product display="32" count="0"/> </products> Please help me out. This is …

Member Avatar for fpmurphy
0
264
Member Avatar for kidwon

Hi guys, This below is my code: [CODE]<script language="javascript" type="text/javascript"> function bc () { var bc = document.getElementsByTagName("BusinessCard"); for (var i=0; i < bc.length; i++) { var create_card = document.createElement("div"); create_card.setAttribute("class" , "BusinessCard" ); create_card.setAttribute("className" , "BusinessCard" ); document.getElementsByTagName("body")[0].appendChild(create_card); } } </script> </head> <body onload="bc()" > <BusinessCard> <Name>Somebody Somewhere</Name> <phone …

Member Avatar for kidwon
0
139
Member Avatar for swebb

Hi all, I've just started to learn XSLT, so apologies if this question is very basic! I want to create a new html document, one of my elements in the XML file uses mixed elements. I want to do more complicated formatting using linked documents etc. but for the moment …

Member Avatar for iceandrews
0
317
Member Avatar for Aldius

Hello everyone! I just had a quick question about XSLT. I have a large xml file with many <DIMENSION_Id> nodes nested inside each other. In each <DIMENSION_Id> node there are two SYN tags: <SYN>String</SYN><SYN>Integer</SYN> What I am trying to do is take the furthest child node of each DIMENSION_Id and …

Member Avatar for Aldius
0
512
Member Avatar for Parthmishr

I use an xslt to get some ID attribute..when new xml file is built.. Here is a input xml file.. <page num="App. A-1"/> <title>Appendix A</title> <subtitle>The Thompson Memorandum</subtitle> <para align="left"><content-style font-style="bold">U.S. Department of Justice</content-style></para> <para>Office of the Deputy Attorney General</para> <para>The Deputy Attorney General</para> <para>January 20, 2003</para> <table frame="none" width="100%"> …

Member Avatar for iceandrews
0
122
Member Avatar for sypa

We have a dynamic sitemap and all nodes in the sitemap display a breadcrumb. Is it possible to have the breadcrumb still showing, but make the link in the sitemap invisible or non-clickable? Reason for this is that... we dont want users to select some pages from the sitemap (becasue …

0
62
Member Avatar for fvar

Here is my sample xml [CODE] <STUDENT_INFOs> <STUDENT_INFO> <STUDENT_COUNT>1</STUDENT_COUNT> <STDNT_ID>xxxxxxxxx</STDNT_ID> <STDNT_NAME>someone1</STDNT_NAME> <STREET_ADDRESS>address1</STREET_ADDRESS> </STUDENT_INFO> <STUDENT_INFO> <STUDENT_COUNT>2</STUDENT_COUNT> <STDNT_ID>yyyyyyyyy</STDNT_ID> <STDNT_NAME>someone2</STDNT_NAME> <STREET_ADDRESS>address2</STREET_ADDRESS> </STUDENT_INFO> : : upto 50 student info </STUDENT_INFOs> [/CODE] I would like to display this using xslt such that I have 5 student names in the first row and the next 5 …

Member Avatar for fvar
0
115
Member Avatar for nedportcj5

Hello, first post here so take it easy :) I have been searching with no luck on finding a solution - hopefully you can help! I need to reference a xml file and get the value of an element. In my initial xml post, I will send along an ip …

Member Avatar for hielo
0
194
Member Avatar for mulevad

I am placing xml into a table in html and trying to sort based on a parameter, but my parameter's value is not being used. It uses the string "$sortkey" instead. Here is an xsl excerpt: [code] <xsl:for-each select="catalog/cd"> <xsl:param name ="sortkey" select="country"></xsl:param> <xsl:sort select="$sortkey"/> <tr> <td> <xsl:value-of select="title"/> </td> …

Member Avatar for iceandrews
0
189
Member Avatar for corinport

Please, somebody help. I need to transform xml into xml with xsl. it´s urgent. the attach files are the input in XML and output is what the prof. want. Help-me please Corin thanks

Member Avatar for iceandrews
0
125
Member Avatar for Rajicet
Member Avatar for Leksiq
0
224
Member Avatar for tron_thomas

I am somewhat new to XSLT, and I have a situation where depending on certain conditions I want to convert XML like: <SomeElement> <ChildElement/> <ChildElement/> <ChildElement/> ... </SomeElement> to: <SomeElement value="something"> <ChildElement/> <ChildElement/> <ChildElement/> ... </SomeElement> I don't want to specify the child elements in the template that modifies the …

Member Avatar for tron_thomas
0
2K
Member Avatar for kevcpu

I am currently reading data from a webpage form, using the data to generate xml, using xslt to translate the data into an html format and emailing the html. Is there a way to transform the data into a pdf format and send this as a file instead? I have …

Member Avatar for iceandrews
0
180
Member Avatar for himit

Hi, Please find the 2 XML's Input XML- [CODE] <feed xmlns:es="http://ucmservice"> <element> <es:RepositoryDetails> <es:Repository Type="DatabaseRepository" /> <es:ConnetionDetails> <es:Param MigrationSetId="439" /> </es:ConnetionDetails> </es:RepositoryDetails> <es:DocProperties> <es:UniqueDocId Value="_1_15"> <es:DocProperty propertyName="EmployeeName"> <es:PropValues> <es:PropValue>Index</es:PropValue> </es:PropValues> </es:DocProperty> <es:DocProperty propertyName="EmployeeAddress"> <es:PropValues> <es:PropValue>Gurgaon</es:PropValue> </es:PropValues> </es:DocProperty> <es:DocProperty propertyName="Salary"> <es:PropValues> <es:PropValue>15000</es:PropValue> </es:PropValues> </es:DocProperty> </es:UniqueDocId> </es:DocProperties> </element> <element> <es:RepositoryDetails> <es:Repository Type="DatabaseRepository" …

0
69
Member Avatar for veejai24

Hi All, In my current project i need to display xml content as html output. Iam using XSLT to process the incoming xml message into html output values. We are reusing existing XSLT files, so in one of the file we have something like below code, which uses xpath count …

Member Avatar for pritaeas
0
83
Member Avatar for RickW

I have this output from a mysql export: [code] <?xml version="1.0"?> <resultset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" statement="select product as sample,count(*) as count from table1 where itemno in (5,10,37) and type='food' and package='boxed' group by package,product order by count(*),product desc limit 5 "> <row> <sample>cereal</sample> <count>1</count> </row> <row> <sample>macaroni</sample> <count>1</count> </row> <row> <sample>cookies</sample> <count>2</count> …

Member Avatar for RickW
0
178
Member Avatar for ashishra

Hi, Background: I have an input xml and a xslt to be applied on top of that to get a new desired xml output. Both (input xml and xslt) are tested thoroughly and working as expected if I am using them via java code (core java APIs). I want to …

0
55
Member Avatar for GrexD

The XML file has a series of source and ID code pairs which I want to display in a single cell in a table. For instance, it would look like this.. SourceA - 4598H67 SourceB - 98565 SourceC - 98ASD5 The code below adds them to a single cell but …

Member Avatar for GrexD
0
107
Member Avatar for changeco

We have a set of data we want to navigate through, the content will remain static so the dynamic portion of it will be religated to an xml file using an xsl template then being processed by a php page... I have valid xml, xsl and php - but - …

0
60
Member Avatar for k.e.v

Hi everybody, I need to take an xml file and remove 2 certain namespaces from it using XSLT("scrubbing metadata"). Also, I believe I would need to use the Transformer class in combination with the XSLT. Can someone help me out? Possibly giving me an example with namespace "A" and namespace …

Member Avatar for k.e.v
0
154
Member Avatar for hnmcc

My project turns XML into HTML. I need to insert DIV elements in certain places and (so far) I haven't found a way of doing it. My input XML, over which I have no control, looks like this: [CODE] <response> <result> <doc> <str name="item_A">A</str> <arr name="B"> <str>B1</str> <str>B2</str> ... </arr> …

0
61
Member Avatar for himit

Hi, I am trying to convert an XML into another desired format XML through XSL. However, I am not able to apply any proper logic to get that. Please llok into it and suggest something- Input XML- [CODE] <feed xmlns:es="http://ucmservice"> <element> <es:RepositoryDetails> <es:Repository Type="DatabaseRepository" /> <es:ConnetionDetails> <es:Param MigrationSetId="439" /> </es:ConnetionDetails> …

0
77
Member Avatar for rolsen

Dear all, Another beginner seeks assistance with XSLT and XPATH ;-) This is my XML source: [CODE] <?xml version="1.0" encoding="UTF-8" ?> <report xsi:schemaLocation="http://www.callassoftware.com/namespace/pi4 pi4_results_schema.xsd" xmlns="http://www.callassoftware.com/namespace/pi4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <profile_info > </profile_info> <results> <hits rule_id="RUL1" severity="Error"> <hit type="Image" page="PAG1"> </hit> <hit type="Image" page="PAG2"> <imagestate image_id="IMG30" v_ppi="127.0" h_ppi="127.0"></imagestate> </hit> </hits> </results> </report> [/CODE] I …

Member Avatar for rolsen
0
161
Member Avatar for Member 785689

Hello Everyone, I am fairly new to xml and xslt/xpath, but I am hoping someone can help me with the following problem: I have a software system that accepts a query and returns an xml file. I want to be able to use xslt to create an html table from …

Member Avatar for iceandrews
0
80
Member Avatar for shilpajmensi

Hi... Can anybody give me some idea about how to write a xsl to generate expand/collapsable html tree structure for a xml file? Thanks

Member Avatar for pritaeas
0
173
Member Avatar for shilpajmensi

Hi, Need Urgent help..!!! I have a xsl to display all the xml elements in a html page. It works fine but i m not able to generate a proper indentation or format. Even a new line character doesnt work. I have pasted below the xsl ,Please help me out …

Member Avatar for shilpajmensi
0
211
Member Avatar for renoua

Hello, I have a xml file which has 106 books.. I xsl tranformed it and here: [CODE]<xsl:value-of select=" bioghist/bioghist/chronlist/chronitem/date"/> [/CODE] is the date every book was created with that format: ddmmyyyy how can i add slashes? and make it like that dd/mm/yyyy ?? thanks in advance :)

Member Avatar for awofesof
0
3K
Member Avatar for awofesof

Dear members I am new to the world of XML and XSL transformation, i hope someone can help me with this XSL transformation for an XML. I am not geting the expected result as described below The following is the XML that I am trying to transform to another XML …

Member Avatar for awofesof
0
268
Member Avatar for shilpajmensi

Hi, Please help me with some idea to create a xsl file to display tree view of any xml as html. Thanks..!!!

Member Avatar for shilpajmensi
0
174

The End.