Skip to main content

All Questions

Tagged with
0 votes
2 answers
28 views

XPath 1.0 predicate with number function doesn't match all nonzero values in XSLT input

I'm using the xsltproc command and getting unexpected output from a predicate using the number() function. I'm trying to use number()'s output as a boolean, with 0 treated as false and all other ...
narwahl's user avatar
  • 99
0 votes
1 answer
37 views

Applying default values in multiple XML elements using XSLT 1.0

I am using XSLT 1.0. There is a requirement of applying default values to all the XML elements which are blank using XSLT. For example, say below is the input XML: <employee> <id ...
Anirban's user avatar
  • 949
0 votes
1 answer
59 views

Using XSLT to Iterate and Transform XML to Simple Text

I am a beginner and still learning in XSLT. I have a simple xml code below: <?xml version="1.0" encoding="UTF-8"?> <order id="1021"> <items> ...
ItsBuddy007's user avatar
1 vote
0 answers
62 views

Need to remove the duplicate node values index based using xslt 1.0

I tried various ways to get rid of the duplicate node values but couldn't achieve the desired result. Below is the input XML. <before> <class> <type>352&...
pks_2014's user avatar
0 votes
0 answers
47 views

Saxon 10 by default considering given input parameter as a string

I have updated Saxon from version9 to version10. But for the same Xsl code getting different result. In Saxon10 by default its considering input parameter as string, But in Saxon9 its considering ...
Manikandan S's user avatar
0 votes
1 answer
51 views

XSLT: Eliminate XML Nodes That Have Qualifying Nodes In Set (XSLT 1.0)

Let's say I have the following XML: <School> <Class name="Biology"/> <Class name="Math"/> <Class name="English"/> <Student ...
Kieran Ojakangas's user avatar
1 vote
1 answer
68 views

Center a Row of Data in a Table so that Data is Aligned at the Center Column

Good Afternoon, I could use a hand. Ultimately what I would like to do is generate a table where each row of data is populated so that it’s centered at a specific column, and the determining factor ...
Grot's user avatar
  • 55
-1 votes
1 answer
28 views

XPATH needed for specific node(s) by attribute match

GIVEN XML <lists> <list> <param type="a">content</param> </list> <list> <param type="b">content2</param> </list> <list> &...
b3v0's user avatar
  • 9
0 votes
1 answer
23 views

xpath xslt not returning results

I have the following xml <?xml version="1.0" encoding="UTF-8"?> <getCarResponse xmlns="http://cars-collections.azurewebsites.net/" xmlns:soap="http://...
adam78's user avatar
  • 9,978
-1 votes
1 answer
61 views

Need an xpath to lookup an attribute value by that attribute's name as a string

Using an xslt 1.0 xpath I would like to provide the name of an attribute as an xs:string and compare it's value against a constant. given <School> <classroom number=101 male="0" ...
Quinn Carver's user avatar
0 votes
1 answer
50 views

Why XSLT Round(3241.44 * 3 ) div 3 is 3241.3333333333335

Why XSLT Round(3241.44 * 3 ) div 3 is 3241.3333333333335 I am expecting 3241.44 after the formula : Round(3241.44 * 3 ) div 3 Please explain the inner working of round and div keywords. Generally ...
Pranay Pondichery's user avatar
0 votes
1 answer
62 views

PHP unable to use XSLT stylesheet to navigate TEI XML

When I apply an XSLT template to a TEI XML file using PHP it seems that PHP can't navigate the XML tree using X-Path, because it seems to ignore (all) elements inside the XML file. In PHP, I am trying ...
Pavel Tříska's user avatar
0 votes
2 answers
85 views

Xpath to find an element present inside two different self closing tags

My correct XML is: <xml> <astart/> <a>XXX</a> <bstart/> <x>..</x> <y>..</y> <b>AAA</b> <...
BWin's user avatar
  • 25
1 vote
1 answer
179 views

Enable XPath/XSLT document function for Visual Studio 2022 debugger

I'm writing a C# program incorporating XSLT. Visual Studio throws the following warning for my XSLT: Execution of the 'document()' function was prohibited. Use the XsltSettings.EnableDocumentFunction ...
Christopher Kellett's user avatar
0 votes
2 answers
37 views

XSLT for wrapping immediate following-siblings of certain condition

I have the following source XML <root> <i type="r"/> <i type="s"/> <i type="r"/> <i type="r"/> <i type="s"/&...
Cipy's user avatar
  • 3

15 30 50 per page
1
2 3 4 5
36