0

Somehow my xslt transformation with php always adds xmlns="" as an attribute to all root elements. Is there a way to prevent this?

1
  • 1
    Yes. Give them the proper xmlns value. Commented Jan 29, 2010 at 21:53

1 Answer 1

3

In your XSLT try:

<xsl:stylesheet exclude-result-prefixes="#default">
Sign up to request clarification or add additional context in comments.

1 Comment

thanks, however switching to xsl:element seems to have solved my problem also ... guess I really need to do some reading ;)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.