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

RE: document() function and error-handling

Subject: RE: document() function and error-handling
From: "Scott Trenda" <Scott.Trenda@xxxxxxxx>
Date: Fri, 4 Jan 2008 17:34:07 -0600
RE:  document() function and error-handling
I'm really not trying to beat a nearly-dead horse here (I swear!), but the XML
spec says in '2.6:
[17] PITarget ::= Name - (('X' | 'x') ('M' | 'm') ('L' | 'l'))

If I'm reading it correctly, this only reserves "xml", and variations in
letter cases, for internal use. Whether or not it's bad form to create PIs of
the form <?xml-whatever?> is a separate issue, but the spec doesn't forbid
it.


Like I said before, bad form is bad form and I'll alter it in the end, I just
haven't thought of a better name for it yet. :( And again, thanks for the
responses, they've been really helpful.

~ Scott


-----Original Message-----
From: David Carlisle [mailto:davidc@xxxxxxxxx]
Sent: Friday, January 04, 2008 5:13 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  document() function and error-handling


> Wouldn't
> "xml-" be the most appropriate prefix here?

No, such names are reserved for other use. You can call it result-xml or
_xml_result or pretty much anything you like. Why trample on the
reserved names?

even w3c specs avoid doing this, consider xslt for example an early draft
had an attribute xml-declaration on xsl:output,
but they thought better of it and changed to
omit-xml-declaration
http://www.w3.org/1999/08/WD-xslt-19990813#section-XML-Output-Method

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

Cast Your Vote

We need your help – Vote for DataDirect XML Products!

  • Best SOA or XML site

Winners and finalists announced at SOA World Conference in November.

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-2007 All Rights Reserved.