Skip to content

Common XSLT pitfalls #4

@raducoravu

Description

@raducoravu

Converted from internal issue EXM-42907
Discuss about various problems beginners encounter when doing XSLT

apply templates versus xsl:copy
Know on what content you are matching
debug xsl:message and printstacktrace
Generic template match versus a more specific one.
xsl:next-match
apply templates excluding attribute
template match //
How are relative references resolved document() and result-document()
Match more items than expected using xsl:value-of
Not typing your function's paramaters and variables
Difference between variables and parameters
Copy template, match only elements, default match templates
default attributes, recognizing default attributes when matching Schematron rules.

See:
http://gandhimukul.tripod.com/xslt/xslquality.html
https://github.com/mricaud/xslt-quality

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions