Top "Xslt" questions

XSLT is a transformation language for XML designed to transform structured documents into other formats (such as XML, HTML, and plain text, or, in XSLT 3, JSON).

Check if a string is null or empty in XSLT

How can I check if a value is null or empty with XSL? For example, if categoryName is empty? I'm …

xslt null xslt-1.0 xslt-2.0
How to implement if-else statement in XSLT?

I am trying to implement an if -else statement in XSLT but my code just doesn't parse. Does anyone have …

xml xslt if-statement
xpath find if node exists

Using a xpath query how do you find if a node (tag) exists at all? For example if I needed …

xslt xpath expression
XSLT string replace

I don't really know XSL but I need to fix this code, I have reduced it to make it simpler. …

xslt xpath replace xslt-1.0 xpath-1.0
How to concat a string to xsl:value-of select="...?

<a> <xsl:attribute name="href"> <xsl:value-of select="/*/properties/property[@name='report']/@value" /> </…

xslt xpath
XPath with multiple conditions

What XPath can I use to select any category with a name attribute specified and any child node author with …

xml xslt xpath
XMLHttpRequest Origin null is not allowed Access-Control-Allow-Origin for file:/// to file:/// (Serverless)

I'm trying to create a website that can be downloaded and run locally by launching its index file. All the …

jquery xml xslt cors xmlhttprequest
Producing a new line in XSLT

I want to produce a newline for text output in XSLT. Any ideas?

xslt
Can you put two conditions in an xslt test attribute?

Is this right for When 4 < 5 and 1 < 2 ? <xsl:when test="4 &lt; 5 AND 1 &lt; 2" > <!-- …

xslt
Getting the value of an attribute in XML

How would one get the value of attribute1 (blah) in the following xml using xslt: <name attribute1="blah" attribute2="…

xml xslt xpath attributes