822
questions
0
votes
1
answer
15
views
XSLT Sort has issues with few Child nodes
I am trying to use XSLT to sort only specific segments when it is having same /HEADER/DOC/E_E20/ROOT/MAT segments, if this case exist then //ROOT/FIELD3 must be used as key to sort the entire segments,...
0
votes
3
answers
61
views
XSLT:Sort issue when using the key field
I have an issue while sorting LuLineItem where I need to sort it when its corresponding Iden/IdenValue, where IdenType=OCC1 is repeating in another LuLineItem, then based on Idenvalue, where Identype=...
0
votes
2
answers
36
views
XSLT 3.0 - how do I correctly use apply-templates and copy-of?
I am fairly new to xslt 3.0 and have a problem that requires it's use. I am very close but my output is printing the text-only copy of the data that I do not want.
I have to basically merge the T3 ...
0
votes
2
answers
39
views
XSLT: Checking the length and copying the value
I am trying to write an XSLT to check if <identification>, which has <identificationType> as Type10 or not, if it exist and <identificationValue> length is less than or equal to 5 ...
0
votes
2
answers
75
views
Use XSLT to change root element and namespace but keep other common namespaces
I am trying to convert an XML document to one with a new root element, but which shares many other common element namespaces. I am having troubles with the namespace transformation.
This is the input ...
1
vote
2
answers
43
views
XSLT split XML into separate messsages by child node
I'd like to split an XML message into separate messages, by each ocurence of a subnode (A_SalesOrderItemType), keeping the parent values for each via XSLT 2.0 or 3.0 transformation.
An excerpt of the ...
0
votes
1
answer
37
views
XSLT to Copy header node value to child segment if that segment is not exist
i am trying to write XSLT mapping for copying parent value to child nodes, ContainerCode -- > Serialshippingcontianercode value we need to pass to its subnodes under new tag <identification>, ...
0
votes
1
answer
64
views
Filtering arrays from Saxon XSLT API in Java?
I have this xml:
<?xml version="1.0" encoding="UTF-8"?>
<Document>
<tag-one>
<tag-two>
<tag-three>
<tag-...
0
votes
2
answers
47
views
Count of the different element code should show at the end
I'm totally having 10 Detail element like below, In that I want to split and arrange the Code element value as per the Indicator Plan value.
<Details>
<Detail>
<Code>001&...
0
votes
1
answer
61
views
How to divide the values in a single line into multiple lines, and also to remove the duplicates in xslt 3.0
Input:
<AAA>RIO_CBI_TE01_1 RIO_CBI_TE01_1 RIO_ATC_TE01_1 RIO_ATC_TE01_1 RIO_ATC_TE01_1 RIO_ATC_TE01_1 RIO_ATC_TE01_1 RIO_ATC_TE01_1 RIO_ATC_TE01_1 RIO_ATC_TE01_1 RIO_ATC_TE01_1 RIO_ATC_TE01_1 &...
0
votes
1
answer
37
views
cyclic and/or multiple xsl:include in xslt 3 code
I have a non trivial set of XSLT code in a library where I have ended up (quite understandly) with some cyclic and/or multiple includes of the same file.
So...
`Warning at xsl:stylesheet on line 10 ...
1
vote
1
answer
46
views
User defined XPath operators in XSLT
I have an function that would look much nicer as an operator.
We can use append as an example, lets say I want to use +
so
$foo + $bar
rather than
array:append($foo,$bar)
There is nothing obvious that ...
0
votes
1
answer
34
views
alternatives to import/include for importing library functions
I sometimes use xsl:import/xsl:include to import library functions, but its a bit clumsy. Things like saxon seem to import libraries by magic based on including a namespace in the root.
I probably ...
0
votes
1
answer
40
views
Issue in Sort only particular segments which is having duplicate values
I am trying to use XSLT to sort only specific segments when it is having same /header/doc/root/mat segments, if this case exist then //FIELD3 must be used as key to sort the entire segments, other ...
0
votes
2
answers
50
views
XSLT to reassign Sequence Number based on Key Field Value
I have a requirement to reassign the sequence number /MainHeader/Record/POSN with 8001,8002.... when we have two segments which has same value in the field /VAR, If /Child -- > segment exists ...