Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Common XSLT pitfalls #4

Open
raducoravu opened this issue Dec 9, 2019 · 1 comment
Open

Common XSLT pitfalls #4

raducoravu opened this issue Dec 9, 2019 · 1 comment

Comments

@raducoravu
Copy link
Contributor

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

@raducoravu
Copy link
Contributor Author

Interesting thread: https://groups.io/g/dita-users/message/44946

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant