XML: not working w/ embedded XSLT

I have the following XML file, with embedded XSLT. <?xml version="1.0" encoding="UTF-8"?> <doc> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" id = "style1"> <xsl:import href = "S1000...
more »

2017-05-08 16:05 (1) Answers

XML to CSV using XSLT - preserve polish letters

I'm converting XML to CSV using XSLT. My output line in XSLT is: <xsl:output method="text" encoding="UTF-8" /> There is a lot of polish letters in XML, that's the problem. When I transform the XML from Notepad++ using XML tools plugin, the ou...
more »

2017-05-05 15:05 (1) Answers

How to request jsonp without 'callback' in the URL

I am trying to retrieve information from an Icecast Radio station. The API provides the status-json.xsl to get these data. Although the format is xsl but i believe it returns a JSON file. However I noticed the server does not return the data if the ...
more »

2017-05-01 00:05 (1) Answers

Unknown Function Current-Datetime()

Can someone explain why I'm getting Unknown Function for current-datetime() in this XSLT? I'm using Oxy with Saxon 9.6.0.7. I thought using XSLT 2.0 with current saxon, a straight call to current-datetime(): <?xml version="1.0" encoding="UTF-8"...
more »

2017-04-28 21:04 (1) Answers

XSLT - Special Character transform

I have sample xml like this, <doc> <node>Test</node> <?ABC Text &#x2013; <italic>Text</italic> more text?> </doc> I need to get the value of processing instruction ABC so I wrote following temp...
more »

2017-04-27 12:04 (1) Answers

XSLT-FO for-each

This is my xml: <OrdersSchedulePDFView> <OrdersSchedulePDFViewRow> <Locations> <LocName>Text1</LocName> <LocName>Text2</LocName> </Locations> </OrdersSchedulePDFViewRow>...
more »

2017-04-27 09:04 (2) Answers

xsl help for html table

Newbie to xslt. I have a xml file which cannot be changed and looks like the below. id attribute will exist in all elements, but the other variables may or may not exist. Any help to approach representing this in xslt is greatly appreciated! Thanks! ...
more »

2017-04-24 13:04 (2) Answers

Trying to understand xsl:key

I am new to xslt and I am trying to learn xslt 1.0. I am trying to figure out how I can obtain the following result with my xml file. I played around a lot with my xsl file but I think there is something I just don't get because it's not working at...
more »

2017-04-16 21:04 (1) Answers

Defining XSLT to Transform XML to XML

I have tried converting the following XML to another XML document using the XSLT style sheet I have created. The output is not giving me what i want, the output is not the right xml nodes nor is it outputting the tags. Please could someone help. Th...
more »

2017-04-11 00:04 (1) Answers

Transform the xml using

I have an xml like below: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <properties> <entry key="user">1234</entry> <entry key="name">sam</entry> </properties> I want to transform the key value(ke...
more »

2017-04-08 06:04 (1) Answers

XSLT 1 Distinct grouping

I'm trying to do a distinct after a grouping and it doesn't work. Using this node : <MAIN> <VALUE>A</VALUE> <VALUE>B</VALUE> <VALUE>AB</VALUE> <VALUE>A</VALUE> <VALUE>AB...
more »

2017-04-07 10:04 (1) Answers

Edit value in specific attribute with XSLT

I'm trying to write my first XSLT. It needs to find all bind elements where the attribute ref begins with "$.root" and then insert ".newRoot". I have managed to match for the specific attribute, but I don't understand how I can get it to print an upd...
more »

2017-03-28 20:03 (1) Answers

How to do a calculator with XML and XSLT

I am building an expression calculator using XSD, XML and XSLT. At the moment only Sum operation is implemented. I have already developed the xml-schema and a valid xml document. SCHEMA (XSD) <xs:complexType name="typeSum"> <xs:s...
more »

2017-03-25 18:03 (1) Answers

Remove extra group level using XSLT

I need to remove the extra group level in my generated output. My requirements is that, I need to split the data in element <FFF> for every 10 characters. My code is almost working but it populated an extra group level <FinalRecord>. Here...
more »

2017-03-23 14:03 (1) Answers

xpath select all attributes ending with foo?

Is it possible with XPATH/XSLT 1.0 to select all attributes ending with "Foo"? I'm writing some XSLT to get the list of all values of all attributes for all "InterestingElement"s where the attribute name ends with "Foo". Actually I also want to fil...
more »

2017-03-20 20:03 (2) Answers