php's xslt processor is being lame.
- Started
- Last post
- 4 Responses
- vena
question for anyone who has experience with using php's sablo XSLT processor...
for some reason, when i put [xsl:apply-templates /] it applies all of the remaining templates, but repeats all of the xml tag contents before doing so... i can't figure out why it's doing it, and it's not supposed to be doing it, but maybe it's a quirk one of you have run into before?
thanks
- vena0
eh, i think sablotron is just sucking. oh well.
- Mimio0
Are you using anything else in your php build? sometimes add-on libraries don't play well with other things.
- openmind0
Hi,
I've often had the same prob, I think what you need to do is
where myNode is the element where you wish to restrict the template transformation to. If you just have
it will apply it to the root node and you will get repetition of all your other nodes.
hope it helps
also check out
www.w3schools.comthey have a great xml and xslt tutorials.
- openmind0
opps. seems this forum won't let me post the code check this out
Hi,
I've often had the same prob, I think what you need to do is
xsl:apply-templates select="myNode"
where myNode is the element where you wish to restrict the template transformation to. If you just have
xsl:apply-templates
it will apply it to the root node and you will get repetition of all your other nodes.
hope it helps
also check out
www.w3schools.comthey have a great xml and xslt tutorials.