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

RE: XSLT transformation flow based upon data type (acc

Subject: RE: 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
xslt identical transformation
Hi Adam:

Actually XSLT knows nothing about any schemas or DTD's you may validate
against.  A classic example is:

&nbsp;
&#160;

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:  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

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.