Subject: RE: [xsl] XSLT transformation flow based upon data type (access schema from within XSLT?) From: "Dion Houston" <dionh@xxxxxxxxxxxxxxxxxxxxx> Date: Fri, 18 Oct 2002 15:26:59 -0700 |
Hi Adam: Actually XSLT knows nothing about any schemas or DTD's you may validate against. A classic example is:   Look exactly identical to XSLT because the normalization/validation of the data happens before XSLT gets to it. Therefore you can use schema information either through a proprietary mechanism as you have found, or else through the document() function. Note that XSLT 2.0 has much richer support for XML Schemas. You may want to look at (e.g.) Kay's SAXON processor to see if this meets your needs. HTH! Dion -----Original Message----- From: Adam Griffin [mailto:agriffin@xxxxxxxxxxxx] Sent: Friday, October 18, 2002 2:54 PM To: 'XSL-List@xxxxxxxxxxxxxxxxxxxxxx' Subject: [xsl] XSLT transformation flow based upon data type (access schema from within XSLT?) It seems somebody would have run across this same problem by now, but I can't seem to find a solution to it anywhere. Essentially: how do I get the XSLT to "see" the data type of a node? What I'm doing: given a bunch of nodes from an XML doc I'm matching on (*), I want to perform a specific action to them based upon the data type contained within the XML node. My current approach: try and get the data type info from the schema but, I can't seem to find a way to get to the schema programmatically from within the XSLT doc in a non-proprietary approach (I can get to it from scripting extension but it really slows things down). I also don't really want to utilize the document() function to load up the schema since it *should* already "know" it somehow since I already validated against it (and the scripted extension solution proves it). Any ideas greatly appreciated. Thanks! -Adam XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] XSLT transformation flow , Michael Kay | Thread | RE: [xsl] XSLT transformation flow , Michael Kay |
[xsl] XSLT transformation flow base, Adam Griffin | Date | Re: [xsl] XSLT transformation flow , Jeni Tennison |
Month |