[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XML attribute value to pattern match of the replac
At 2010-02-20 21:40 +0530, Mukul Gandhi wrote:
On Sat, Feb 20, 2010 at 9:04 PM, Selvaganesh <selvaganesh_t@xxxxxxxxxxxxxx> wrote: > <hov:template match="caseref"> It is not unprecedented to use a prefix other than "xsl", and there is certainly nothing wrong with it. Though it does break with convention I can't think of a technical reason to deprecate it. Using a prefix other than "xsl" is useful when writing stylesheets that write stylesheets (especially based on the conventions of XSLT 1 engines). The most common convention, is to use the prefix "xsl" for XSLT language instructions. The XSLT spec, also uses the prefix "xsl" within itself. Only for documentary purposes ... there are no requirements to use that prefix. Though, it is a common practice to have business specific namespaces (URIs & prefixes) in the instance documents. I find using specific prefixes is only useful in documentation. There are 33 different namespaces in the UBL 2.0 vocabulary (55 and counting in UBL 2.1) and for consistency in the documentation the UBL TC has adopted a collection of namespace prefixes. But in no way do we require UBL users to use those prefixes in their XML. Having a documentary convention helps the human reader not have to constantly guess what namespace is being referred to. But such a convention is only useful to the human reader. Any XML instance processing based on an expected prefix is wrong because the process has no idea what prefixes the end user is going to use in an arbitrary input XML document. I hope this helps. . . . . . . . . . . . . Ken
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|