This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: re: generation of qnames/prefixes in content and value [was xbind:module....]


| From: "Clark C. Evans" <cce@clarkevans.com>
| > Can we get into esoterics here?  Just a wee bit ago, on the xml-dev
| > list, Curt Arnold stated that the inability to assign specific
| > prefixes in XSLT would prevent usage of an implements-prefix
| > within SVG's script element.   I scanned the 1.1 WD and did not
| > see where the new specification has addressed this difficulty.
| >
| > Without the ability to specify prefixes, then an XSLT stylesheet
| > which generates an XSLT stylesheet will be unable to declare
| > script items.  Right?   Or am I missing something again?
| 
| Actually, as far I can tell, it would also prevent the generation of any XML
| application that used qualified names in contexts other than tag or
| attribute names.  For example, XML Schema uses attribute values containing
| QNames to refer to types or elements defined in other schemas (for example,
| base="xsd:double") and XSLT 1.1 uses QNames to refer to extension behavior
| in expressions (i.e. ="{date:format(@date)}"

See http://www.w3.org/TR/xslt20req #1.5 about QName-aware string functions.

Also, isn't the prefix completely irrelevant as long as
the prefix that the XSLT processor generates resolves to
the same namespace URI that you are talking about?

That is, it should not matter if the XSLT processor 
spits out "ns00123:integer" instead of "xsd:integer"
as long as the prefix "ns00123" is mapped in scope
to the same namespace URI that the convential "xsd"
prefix is mapped to, right?

Seems like it would only matter if you were processing
the output stylesheet with non-XML-Namespaces-aware tools
(like awk, perhaps) that were specifically scanning for 
a hard-coded "xsd:".

______________________________________________________________
Steve Muench, Lead XML Evangelist & Consulting Product Manager
BC4J & XSQL Servlet Development Teams, Oracle Rep to XSL WG
Author "Building Oracle XML Applications", O'Reilly
http://www.oreilly.com/catalog/orxmlapp/



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]