Re: [xsl] Correct handling of namespaces with Sablotron?

Subject: Re: [xsl] Correct handling of namespaces with Sablotron?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 16 Jan 2012 12:37:24 +0000
An XSLT 1 processor is allowed to use any prefix it wants in the output, prefixes used in the source or in the stylesheet are only mild hints. So using ns_1 would be conformant but not what people usually want. (In theory if you only process the file with namespace aware tools and never look at it, the prefix shouldn't matter....

You may give the system a stronger hint by using unprefixed literal result elements rather than xsl:eleemnt so instead of

   <xsl:element name="FMPXMLRESULT"
namespace="http://www.filemaker.com/fmpxmlresult";>


<FMPXMLRESULT xmlns="http://www.filemaker.com/fmpxmlresult";>


or simpler just use

<FMPXMLRESULT>

and stick xmlns="http://www.filemaker.com/fmpxmlresult"; on xsl:stylesheet so it is already in scope.

p

David




________________________________________________________________________ The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. ________________________________________________________________________


Current Thread