Change namespace uri in xslt

I'm trying to convert an xmi file generated by Enterprise Architect in order for it to be accepted by an eclipse tool. One of the things I need to to change is the namespace uri for the prefix uml: from "" to "htt...
more »

2017-10-11 10:10 (2) Answers

Transforming xml with xslt to a new layout

I need to tranform a xml using xslt in order to put all nodes with the same "ans:numeroGuiaOrigem" and "ans:numeroGuiaOperadora" into the same "ans:opcaoRecursoGuia" node. I have posted below the source xml and the required xml. I am a newbie with ...
more »

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

Modifying namespace of all elements with XSLT

I am trying to use the following XSLT to transform the content of an xml document. However, one of my elements is being copied with the previous namespace, not the desired one. See below. <?xml version="1.0" encoding="utf-8"?> <xsl:styleshe...
more »

2017-09-30 03:09 (1) Answers

Adding Parentheses around output in xsl report

I am trying to get the extendedDescription field with parentheses around it inline with Description, except when there is no extendedDescription. I have found a lot of answers on formatting outputs and if statements. But, I am not a programmer and h...
more »

2017-09-18 23:09 (1) Answers

How to speed up XSLT processing time

I'm currently using an XSLT file to transfer an XML file (a lot of mark-up language) to another XML file (pure text). The processing time is too long. I guess this is because I'm using an for-each inside another for-each like this: element&attri...
more »

2017-09-13 04:09 (1) Answers

Parsing XML document in PostgreSQL using XPATH?

Is there a way to parse the following XML document in PostgreSQL using XPATH to obtain desired output as --Corrected required output promotion-id price new-promotion null new-promotion null new-promotion 300 for the price element. Curre...
more »

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

XPath child::* vs child::node()

I'm working with an XSLT transformation, and I found an interesting question that I couldn't answer: What's the difference between child::* and child::node() ? I want to create a condition in which I delimit the quantity of children elements to 1, ...
more »

2017-09-08 19:09 (2) Answers

xs3p: handling include-tags

I just wanted to generate a documentation of a schema with xs3p. The problem is, as far as I understand it, that the schema is split into several files and that xs3p did not process the include-tags of the master file: The result is a documentation ...
more »

2017-09-07 12:09 (0) Answers

Regex in XSLT 1.0 using java

I have this simple test: <xsl:if test="boolean(java:java.util.regex.Pattern.matches('a', 'a'))"> <xsl:message terminate="no">success</xsl:message> </xsl:if> Though it throws this error: ERROR: 'Cannot convert argu...
more »

2017-09-07 08:09 (1) Answers

How to loop through XML using xsl

I'm trying to transform an XML document using XSLT. I have got so far but I can't get the grouping level correct. I want each of the ASN numbers to have there own section. I've tried placing the For loops at different locations but no joy. XML:- ...
more »

2017-09-01 14:09 (2) Answers

How to sort nodes of XML with XSLT

There is given order of nodes and I need to sort the nodes of XML according to the given order. The input is a XML file and output is the XML file with nodes ordered according to given list. XML: <root> <M node="C" home="zzz"/> ...
more »

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

Self-closing xsl:template tag?

I'm looking at an old xsl file and trying to understand the why the original author has defined a number of <xsl:template> elements as self closing tags containing a match attribute. In the example below my question would be in regards to <...
more »

2017-08-24 20:08 (2) Answers