Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 21st, 2003, 10:45 PM
Registered User
 
Join Date: Oct 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default How does XSLT work?

Does anyone know or can refer me to a site that explains how just by including the namespace to a url/urn, XSLT is able to get the logic of the functions / datatypes defined in that namespace?

Example
<?xml version="1.0" ?>
<Schema xmlns="urn:schemas-microsoft-com:xml-data"
        xmlns:dt="urn:schemas-microsoft-com:datatypes"
        xmlns:sql="urn:schemas-microsoft-com:xml-sql">


Thanks,
Vaibhav
 
Old October 22nd, 2003, 12:53 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 147
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to armmarti
Default

Your question is about extensions in XSLT. About all XSLT processors support specific extension elements and/or functions.
It's not the namespace's magic: the concrete XSLT processor recognizes extension elements and functions by namespaces. Then the XSLT processor determines whether it has an implementation of the extension or not. That is, for any XSLT processor there is a set of extensions which is supported and which is specific to that concrete XSLT processor.
Refer to the XSLT spec: http://www.w3.org/TR/xslt#extension ;
Another excellent source (with examples) is Michael Kay's "XSLT Programmer's Reference", 2-nd edition.

Regards,
Armen
 
Old October 22nd, 2003, 03:21 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

To simplify Armen's answer, the details are hard-coded into the XSLT processor. Some processors have the ability to add extra modules in a similar way to Excel or Word having third party add-ins.

Joe (MVP -xml)





Similar Threads
Thread Thread Starter Forum Replies Last Post
&gt; doesn't seem to work in xslt trufla XSLT 18 October 22nd, 2008 05:09 AM
Reload page Tooltip not work - Reload xslt file? ismailc XSLT 10 January 22nd, 2008 10:03 AM
help using saxon to get some XSLT code to work hbabe42 XSLT 3 November 23rd, 2007 02:14 PM
Can XSLT read DTD/schema and Generate XSLT.. ROCXY XSLT 1 November 6th, 2006 09:39 AM
dynamic xslt -> xslt creation namespace problem jkmyoung XSLT 2 July 15th, 2006 12:42 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.