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

Re: How to get XPath in a XSLT shylesheet

  • From: "Andrew Welch" <andrew.j.welch@g...>
  • To: "David Carlisle" <davidc@n...>
  • Date: Wed, 10 Jan 2007 16:25:36 +0000

Re:  How to get XPath in a XSLT shylesheet
On 1/10/07, David Carlisle <davidc@n...> wrote:
> If using a DTD to define (say) xhtml, you need to declare xmlns as an
> attribute (as it is an attribute at the DTD layer) and it's very
> tempting to specify that its only allowed value is
> http://www.w3.org/1999/xhtml
> but unfortunately #FIXED doesn't just define the legal value, it
> defaults that value if the attribute is omitted, so I don't think that
> in DTD there is any way to indicate (other than in comments) the
> namespace for which the grammar is intended, without defaulting this
> attribute.

...agreed but the author of the XML should still leave the namespace
declarations in the XML - just because a by-product of making them
#FIXED is that they are also defaulted, doesn't mean they should be
removed from the XML - thats just frustrating.

I've always thought augmenting XML through validation is a really bad
idea - who wants to wade through a DTD to get the full picture?  (and
then have to validate *every* time the XML is read)

I guess we all know DTDs, XML and namespaces don't play well together
- its just a shame  its used so often...


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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.