In Xalan XSLT 1.0, how to pass a variable to a template match?

This xsl:template: is matching from root. Either remove the / from /* or change it to //* (depending on how the rest of your stylesheet is designed). Also, if you use xsl:param instead of xsl:variable, you can set the value from the command line.

– RaffiM Nov 7 at 20:54 -PARAM name expression See xml.apache. Org/xalan-j/commandline. Html – DevNull Nov 7 at 21:12 I switched to * instead of /, worked great, thanks!

– RaffiM Nov 7 at 22:42 Can someone please explain the downvote? – DevNull Nov 8 at 6:33 not sure who down-voted it, but it worked for me, don't lose sleep over a down vote, there are greater tragedies in the world :-) – RaffiM Nov 8 at 19:49.

Your variable syntax is correct, but note that it is technically illegal to use variable or parameter references in XSLT 1.0 match patterns. It is possible, however, that Xalan has implemented this behavior outside of the standard. (@DevNull's comment about your expression also applies.).

Yes, I believe this is correct. Variable references in match patterns are not allowed by XSLT 1.0, but they are allowed in XSLT 2.0, and they are allowed in Xalan, despite the fact that in all (most? ) other respects it implements XSLT 1.0.

– Michael Kay Nov 7 at 23:01.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions