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

Re: Looking for an example of a name colliision


Re:  Looking for an example of a name colliision
ari@c... (K. Ari Krupnikov) wrote:
| "Thomas B. Passin" <tpassin@c...> writes:

|> The thought is that, if an element known to the xslt processor is 
|> supposed to be a literal result element, use a reserved attribute to 
|> say so -
|> 
|> <template match='doc'>
|>    <template xslLiteral='yes'>
|>       .....
|>    </template>
|> </template>

| To be safe, you'll need to put xslLiteral='yes' on *every* literal
| result element because every one of them may acquire some meaning in a
| future version of the spec.

True.  As far as this idea goes, it's probably "safer" to have the
attribute assert "XSLTness" rather than "literalness".

However, the notion of a reserved discriminator within XSLT doesn't quite
solve the problem of a XSLT stylesheet producing another - where the
discrimination semantic is needed in the output and so the attribute would
have to appear in the sheet "literally".  An attribute renaming facility
in the control mechanism might address this (though the recursions get
tricky here - how about an XSLT-sheet to produce an XSLT-sheet that will
produce an XSLT-sheet?), but we could also take arms against this sea of
troubles with a mechanism to *declare* the instance specific control
attributes, rather than reserve their names to within the XSLT vocabulary.

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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.