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

Re: Namespace(?) question

Subject: Re: Namespace(?) question
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 7 Mar 2007 14:24:14 GMT
Re:  Namespace(?) question
> I was thinking (hoping?) that
> XSL would handle the namespace resolution automatically, 

for element and attribute names, yes but an XSLT 1 processor has no idea
that the pfx:ChildClass in type="pfx:ChildClass" is a QName to which
namespace resolution could be applied. Attribute values, like element
content, are just strings, essentially.

If you know that you ony refer to the target namespace you could test
against substring-after(@type,':')

alternatively if you use a schema-aware XSLT2 implementation and use the
schema-for-schemas that would (presumably) tell the system that
xs:element/@type was an attribute of type QName and then things would
work differently....

Incidentally whenever you have //anything=something, consider using an
xsl:key as that is specifically designed to optimise such expressions.

David

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.