[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Correct handling of namespaces with Sablotron?

Subject: Re: Correct handling of namespaces with Sablotron?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 16 Jan 2012 12:37:24 +0000
Re:  Correct handling of namespaces with Sablotron?
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.