4,857 questions
0
votes
1
answer
129
views
Indesign table XML convert to HTML table using XSLT 2.0
I want to transform Indesign table XML converts to HTML but I am not getting the correct output and need to handle dynamically aid:crows and aid:ccols. can anyone please suggest the correct table HTML ...
2
votes
1
answer
72
views
XSLT using count to add s to the string
Is there a better way to do this I am adding the s if the count is not 1 and if it has the 1 I dont add that line.
<xsl:choose>
<xsl:when test=".//Count = 1">
<li&...
1
vote
0
answers
34
views
Set operation gives an error with Oxygen but not in XMLSpy - what am I missing here?
This works in XMLSPy but not in oXygen 21 with Saxon 12.5:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/...
1
vote
1
answer
134
views
XSLT Reset variable [closed]
I have this variable showHeader that I am using to display a header but I only want it to display one time. After it is displayed I want to set it to false but I am not sure how to do that I only want ...
0
votes
1
answer
68
views
I want to check the content in between to match regex condition in XSLT
In @xlink:href contains 10.1513/AnnalsATS.202508-879ED text will come different types of doi numberes in many file, How to replace it in regex mode to match the below condition. Please anyone help on ...
1
vote
1
answer
72
views
XSLT for-each with using last and aggregation
I am not sure if this is possible with XSLT but I am trying to get the below XML into a format where it is name, title, date (if same date then only get date once), last value of In time (might not be ...
1
vote
1
answer
54
views
How can I access an API endpoint in XSLT if the API requires some authentication headers in the request
I can use the XSLT document() function to access external resources, so long as any authentication can be passed via the URL, e.g.
https://api.domain.com/call_x/id?api-key=abcd1234
However if the ...
1
vote
1
answer
71
views
Issue with Summation Symbol Rendering in MathML using XSL-FO Apache FOP
I am rendering MathML equations in PDF using XSL-FO with Apache FOP. While most equations render correctly, I’ve noticed an issue with the summation symbol — specifically, the lower limit appears ...
2
votes
2
answers
58
views
Transpose rows into columns using xslt with associated values
I want to use xslt to transpose my input to generate a header for my csv file while printing associated values in the rows
Here is my sample XMl
<?xml version="1.0" encoding="UTF-8&...
0
votes
1
answer
51
views
Duplicate content while wrapping in xslt 2.0
Hi I have one xml that need to be nest based on there level attribute but some how i miss the step and it create duplicates. Logic for wrap is wrap element based on @level
My input xml
<root>
...
0
votes
1
answer
71
views
I need an XSLT 3.0 version of my XSLT 2.0 code handle the large dataset which is currently throwing StackOverflow for large dataset
My original XSLT 2.0 code performs a recursive traversal of an organizational hierarchy starting from the top-level orgs (those without a SuperiorOrgWID) and outputting:
1- Each organization, then
2- ...
1
vote
1
answer
52
views
XSLT to Split segment based on its Element occurrence
I am trying to write a XSLT which will create separate statement segments for each of Statement1/Cliam, Statement2/Cliam and Statement3/Cliam in a sequence. All statement1, statement2, statement3 ...
0
votes
1
answer
119
views
Errors during stylesheet compilation with saxon
I am Using saxon EE processor for conversion of XML with XSLT-2.0. but its giving error for XSL file .
Below is the Code for XSL File
<?xml version="1.0"?>
<xsl:stylesheet version=&...
0
votes
2
answers
73
views
XSLT 2.0 for-each-group
I'm trying to understand how works grouping in xslt 2.0. My case: I need to group several documents with identical nodes value.
Xml example:
<items>
<item>
<!-- can be multiple --&...
1
vote
1
answer
81
views
How can I omit a namespace in xslt output?
I have this XML
<?xml version="1.0" encoding="UTF-8"?>
<item xmlns="http://www.p-corp.com/ns/pyxml" version="2.2" xml:lang="en-us">
&...
1
vote
0
answers
115
views
Workday studio : Integration failed 'Loop detected in Local In transport'
I'm new to workday studio integration. got the requirement submit/post journal entry 'Submit_Accounting_Journal_Request' getting error 'Loop detected in Local In transport.
code sample of code in ...
1
vote
2
answers
52
views
Using Key/Template to Lookup External Source on XSLT
The following xml document is being looked up by an XSLT:
<?xml version="1.0"?>
<Generic>
<SalesOrgProperties_HashMap>
<item key="1003" value="...
1
vote
2
answers
62
views
XSLT adding report name on output SOAP request
I am trying to read a report to generate an SOAP request using XSLT transformation. The XSLT keeps on adding report name on SOAP env.
Here is my XSLT :
<?xml version='1.0' encoding="UTF-8"...
2
votes
2
answers
51
views
Using Identity Transformation & Multiple Predicates in Single Match Statement to Silence Node
I am using an identity transformation and template matching to remap an XML element. I need this element to selectively populate when two predicate conditions are met and I'm attempting to do so ...
0
votes
1
answer
76
views
xslt code to split the xml file in to mulitple xml files in runtime based on xml tag <events> and <id>
Am trying to split the xml file in to multiple xml files based on the xml tag / in the input xml file. the individual output xml files should go in sequence as per the input xml /from top to bottom of ...
1
vote
2
answers
30
views
How to Apply the Same XSLT Template to Both XML Elements and Dynamically Created Elements?
I am working with XSLT 2.0 and trying to apply the same transformation process to both elements from the input XML and elements dynamically created within the XSLT.
Input XML:
<?xml version="1....
0
votes
1
answer
45
views
Need to count based on a condition and determined position
I need to be able to count the number of transactions in an input XML that are not equal to zero for a header row.
Here is a snipit of what my XML looks like:
<wd:Report_Entry>
<wd:...
2
votes
1
answer
111
views
How to correctly disable output escaping with XSL and Saxon?
I am using Saxon-He to process this code (I used this post to get the idea):
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
<xsl:key ...
0
votes
2
answers
83
views
Need to pick the value which is not starting with particular letter
I'm having the input with combination of alphabets and numbers, So i just want to pick the value of first which shouldn't start with 'B'
input xml:
<Group>
<map>
<Num>...
1
vote
1
answer
71
views
XSLT Group by using 3 different elements from different node level
I'm new to XSLT, for the below XML, I'm trying to implement this transformation logic: If <wd:candidate>,<wd:CF_LRV_Requisition_ID> and <wd:Stage> have the same combination of values,...
0
votes
1
answer
34
views
XSLT Selecting last position under segment
my requirement is to consider last GS15 occurrence under HEADER/GS9 by removing other GS15 in it, if GS9 has only one GS15 occurrence or no GS15 then we can copy the GS9 segment as it is.
If there is ...
0
votes
1
answer
36
views
XSLT Deleting the duplicate segments has issue
I have an issue while deleting duplicate segments, i have multiple HEADER/SUBHEADER/ORDER segments, in each ORDER segment, separetly i need to check for duplicate OGS11 segments without considering ...
0
votes
2
answers
100
views
XSLT 2 or 3 How to convert <!--/ COMMENT --> in to encapsulating element in output markup
I need to convert no compliant html into xml so I can process thousands of documents in the required json format with XSLT.
<!-- IMAGECOUNT -->
<table width="100%"&...
0
votes
1
answer
64
views
Sorting Issue after multiple same ITEMS
I am facing Issue while sorting 3 different items separately, i tried to explain with example.
Node/ITEM Sorting: Case 1: (If ITEM has one line number only): we need check if this case exist, then ...
0
votes
0
answers
39
views
Need help in xslt 2.0 for excluding special charactcers
I am using this code
<xsl:value-of select="
translate(
wd:CF_LRV_Primary_Address_Full_with_Country,
translate(
wd:CF_LRV_Primary_Address_Full_with_Country,
'...
1
vote
1
answer
39
views
Grouping and Maintain the Sequence
My current requirement is to group K18 based on ALF,OND, then K18 corresponding P04Y,P04Z,P04,P03 must be grouped in sequence as it is predefined structure of K18, but all are optional segments ...
0
votes
1
answer
69
views
change XML declaration to single quote
I have below incoming xml format and for this input XML I just need to add soap envelope.
Input xml
<?xml version="1.0" encoding="UTF-8"?>
<p:msg
xmlns:p="http://....
0
votes
1
answer
37
views
Remove duplicate ITEMs under one parent node
i am trying to remove duplicate BXYI/ITEM segments when its having same N11 and AR values under its respective parent node BXYI.
if multiple ITEM has same N11 and AR value then we can consider it as ...
0
votes
1
answer
45
views
Grouping based on key fields and handling optional segments
My current requirement is to group K18 based on ALF,OND, if it matches corresponding P04Y,P04Z,P04,P03 need to club together in order (P04Y group followed by p04z,p04,p03), all these P04Y,P04Z,P04,P03 ...
1
vote
1
answer
80
views
move the segment to its corresponding parent node
my requirement is to get common K18 segments where its having similar ALF and OND fields, with different subnodes P04Y,P04Z,P04,P03, i need to group them under its parent K18 segment. for example in ...
0
votes
1
answer
56
views
How to remove duplicates without changing the position of the segment
i have a requirement to remove the duplicate ITEM segments without checking its sub node and its values, and without alerting its position, XSLT i used is currently checking exact ITEM segment match, ...
0
votes
1
answer
37
views
parse value from JSON structure in the xml input
I want to parse the values from XML input which contains JSON structure value
I need to read each value from JSON structure mentioned as a value in XML
Example of my XML
<?xml version='1.0' ...
2
votes
1
answer
54
views
XSLT to remove duplicates segment when its have same child elements
i am trying to write an XSLT which will delete duplicate ITEM segment when its having same child node values, under ITEM for example i have given 6 fields, but there is a possibility that few more ...
0
votes
1
answer
59
views
Merge xml input from an external variable into another xml input using xslt
I need to merge an xml input that I stored in a variable with another xml input message using xslt.
XML Input:
<?xml version="1.0" encoding="utf-8"?>
<aggregatedd>
&...
1
vote
2
answers
58
views
XSLT Grouping issue based on condition
i am trying to write an XSLT which will group all relevant SG9 segment based on SG9 field A_51 where A_50= KAR (xpath: INVR/SG9/SG11/SG14/FFR/C506[A_50='KAR']/A_51 in input xml), after grouping for ...
3
votes
1
answer
52
views
Difference between adding value to variable by the content or by the select attribute
Basically I'm trying to write the node name of node stored in a variable to a file. My problem is that it works when I assign the variable's value by the select attribute and not when assigning by the ...
0
votes
1
answer
64
views
XSLT generating only output when no strings are matched
Here’s a snippet of my XSLT code:
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
...
0
votes
1
answer
65
views
I don't understand how to expand attributes with default values with Saxon xslt transformation
I am using Saxon-J EE 12.5 and I don't understand how to expand attributes with default values, and also use a schema-aware transform (I understand that I need to use a schema-aware transform if I ...
0
votes
2
answers
81
views
I want to transform a CDATA under an element to an attribute value and keep the new lines
I want to transform an XML file to another XML file using XSLT, and replace the CDATA of some XML elements by an attribute.
I also need to keep the new line characters, of course I need to convert ...
0
votes
0
answers
182
views
Fatal Error: temp_intermediate_result.xml:1:13: White space is required between the processing instruction target and data. How to fix?
I am in the process of developing an API for validating xml via xsd scheme, but I encounter an error:
[Fatal Error] temp_intermediate_result.xml:1:13: White space is required between the processing ...
0
votes
1
answer
67
views
for-each-group based on position
I have a XML with this format:
<rows>
<row>
<gSubAssetType>
<mSubAssetType>
<SubAssetType>126</SubAssetType>
...
-1
votes
1
answer
64
views
XSLT Missing Segment issue after sorting
I have issue while sorting the segments, i need to sort segments Node/ITEM and Node/LINE segments separately,
Node/ITEM Sorting: we need check if Node/ITEM exist then if Node/ITEM/LINE/FIER/VALUE is ...
0
votes
3
answers
90
views
XSLT 2.0 - Unable to get position number of the node based on a condition
Here is a simplified version of my source XML
<?xml version="1.0" encoding="UTF-8"?>
<Workers>
<Worker>
<ID>1234</ID>
<...
1
vote
3
answers
124
views
XSLT: How to check for duplicate entries and return only the entry that has active status (for that entry that has duplicate)?
I'm trying to output a text file that will remove a duplicate and only return the active one for that id that has duplicate. **Example if I have 2 entries in the xml but entries have same ID, only ...
0
votes
1
answer
52
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,...