XSLT is a transformation language for XML designed to transform structured documents into other formats (such as XML, HTML, and plain text). Questions should use the xslt-1.0, xslt-2.0, or xslt-3.0 tag as appropriate.

learn more… | top users | synonyms (6)

0
votes
0answers
4 views

XSLT equals condtional

I have this simple test in XSLT <xsl:if test="isTrue = 'false'"> but I can't figure out how to do the logical equals operator here. I know < is "&"lt; and > is "&"gt; so what is ...
0
votes
0answers
5 views

For-each loop in JDeveloper doesn't map the response at all

I'm developing a BPEL service using JDeveloper 11.1.1.5.0. The API's response contains some recurring fields and I'm trying to use a for-each loop to map them with the final web-service's response ...
0
votes
2answers
18 views

XSLT equivalent for XML to JSON

I have an application where I am parsing an XML document and want to translate it into a JSON document and embed that document directly into MongoDB. Normally going from XML <-> XML I'd use a tool ...
0
votes
0answers
8 views

GML to SVG Android

What is the best way to render Geography Mark-up Language (GML) file on Android? I was thinking about rendering SVG, since there are free library projects helping you to do this, like this one ...
0
votes
0answers
14 views

Attribute transformation using XSLT

I'm in process of creating XSLT transformation. My source XML contains element Order with attribute InstrumentType: <Order InstrumentType="FWD"> Now, as part of transformation process I have ...
0
votes
1answer
10 views

Comparing umbraco.library:CurrentDate() with a datepicker field

I am having trouble with the following problem. I want to compare two Date Picker with time fields with umbraco.library:CurrentDate() so that i can make an XSLT which does three different things ...
0
votes
0answers
17 views

Transforming MS Office XML

Thanks to Will I've made some progress with generating my own XSLT, however this XML has me completely stuck and resembles nothing I've worked with. Since it uses the MS Office stylesheet it opens up ...
1
vote
1answer
24 views

XSLT Transform screws up <br/> tags

I'm trying to do an XSLT transform (server side, with php), and I want XHTML as output of that conversion, because it's a part of an XHTML page. If I use <xsl:output method="html" /> it ...
0
votes
2answers
19 views

xslt to create comma-separated list from node attributes

I have the following XML: <?xml version="1.0" encoding="utf-8" standalone="yes"?> <Export channel="XXX" date_stamp="20130113 01:01:01"> <Script show_code="ALR" script_no="13081300" ...
1
vote
1answer
30 views

XSLT Parsing error when using Umbraco GetMedia

I am trying to retrieve the url to an image using the GetMedia mediapicker. The code below works fine: <xsl:for-each select="umbraco.library:GetXmlNodeById(1123)/* [@isDoc]"> <article> ...
0
votes
2answers
21 views

replace xml tag value from a fixed value using xslt

i want to replace the tag value with a specific value.it is poassible also that it present multiple time in that. my input file is sample.xml <?xml version="1.0" ...
0
votes
2answers
35 views

XSLT for XML to HTML table

I have an xml like this. < cars> < car> < ford color="black" >eco sport< /ford > < maruti color="red" >zen< /maruti> < hyundai color="blue" ...
0
votes
1answer
19 views

XSLT - Sum based on attribute values

I have following source XML Source XML <?xml version="1.0" encoding="UTF-16"?> <PropertySet><SiebelMessage><ListOfXRX_spcUSCO_spcCOL_spcInvoice_spcAR_spcSummary> ...
0
votes
1answer
20 views

SharePoint XSL Counter

So I've been banging my head against the wall for a while and am looking for some help. I'm trying to create a new itemstyle in sharepoint designer that basically checks each item in a task list and ...
0
votes
0answers
11 views

Having an .xsl file in my rails app breaks delayed jobs, how to I correctly include it?

This is a strange one, I'm using Nokogiri to output static html files like so: <% html = "blah blah blah a HTML file" %> <% xsl = ...
0
votes
2answers
31 views

How to use profiles or targets to get the values from xml properties file using a template file

Using Maven or Ant wanted to get the values from an xml file and replace it by its variables using targets/profiles. properties.xml looks like this: <?xml version="1.0" encoding="UTF-8"?> ...
0
votes
1answer
18 views

How to convert ISO 8601 date/time into milliseconds in XSLT 1.0?

How can I convert ISO 8601 2013-08-13T17:57:55Z date/time text into "milliseconds since epoch" using XSLT 1.0? More specifically, Google Chrome's version of XSLT.
0
votes
1answer
15 views

Trim white-spaces at the end of lines only before a specific tag

could you please help me?! I'm dealing with the following problem: the lines in my xml begin with the <lb> element. Some of these elements have an attribute <lb break="no">. I need to ...
0
votes
1answer
15 views

XSLT From File Different than WebService

I am doing some XSLT - in one case I have a service that serializes to an XML file and my XSLT will pull this. In another case I have a webservice serialize the same object. The outputs are , as far ...
0
votes
1answer
13 views

XSL Name Value Pair transformation

I am not sure it's even possible but here it goes. From this XML: <?xml version="1.0" encoding="UTF-8"?> <AttributesCollection> <Attributes> ...
0
votes
2answers
31 views

Conditional sorting xslt

My XML file <option> <options OPT_CD="LAYOUT_SORTBY1_ORDER" OPT_VALUE="DESC"/> </option> <data> <details name="firstName1" address="lastName1" sortby1="firstName"/> ...
0
votes
0answers
23 views

Handling namespace issues while transforming xml

I am able to transform the xml as per my requirement with the below xml as the input. <message xmlns="http://www.origoservices.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
0
votes
1answer
22 views

How to test for attribute completeness on a resulting document using XSpec?

I'm creating a test that uses an input XML and want to test the presence of an element and the right attributes of the said element. Having difficulty getting this to work right, however. This is ...
0
votes
2answers
39 views

Check if XML node name contains a letter using XSLT

This is not the only question about this but I could not figure out from the other solutions why my code is wrong. This is for an assignment and I have most of it figured out but I cannot understand ...
1
vote
2answers
32 views

Using XSLT to compare two XML files and generate a new XML file

I have two xml files, with the same structure, and I'd like to generate a new xml file with the same structure based on their contents. For example: File1.xml <?xml version="1.0" ...
0
votes
1answer
39 views

Styling the output of an XQuery

I have a collection of xml files withhin eXist-DB (1.4.2). They are all structured similarly to this: <magazine> <issue.number>22</issue.number> <article> <title>first ...
1
vote
2answers
55 views

generating multiple xml file using xslt

i am trying to generate multiple xml file using xslt. my *input.xm*l file is <?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope ...
0
votes
1answer
32 views

how i can have a dynamically title in a book with XSLT and jQuery?

I have this xml : <quran> <row> <WID>10</WID> <word>بسم</word> <SID>1</SID> <Ayeh>0</Ayeh> ...
0
votes
1answer
21 views

XSL:IF with orcondition implementation in xslt1.0

I have the below template as shown.. <xsl:for-each select="/abc/def"> <xsl:if test=".Id='xxx' and ./Role='yyy' "> <xsl:value-of select=" 'true'"/> ...
0
votes
0answers
26 views

how to show xml node in XSLT file based on passing an ID with JavaScript

I also have an xml file containing news headlines, there is a second xml containing full news stories. These xml files are linked by a unique story ID. I am building a single web page which has 2 ...

1 2 3 4 5 450
15 30 50 per page