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

RE: Schema for XSLT (concerns mixed content, content attribute)

  • From: "Arnold, Curt" <Curt.Arnold@h...>
  • To: "'Box, Don'" <dbox@d...>, "'xml-dev@x...'" <xml-dev@x...>
  • Date: Tue, 18 Apr 2000 16:56:40 -0600

mixed content mapping xml xslt
Curt wrote:

> The param element reference in the named-template type 
> definition should have a minOccur="0" and a 
> maxOccur="unbounded".  As written, a template has to have one 
> and only one param.

Don wrote:

My reading of rule 4.3 under the {content type} definition (found under
section 4.3.3) implies that there is an implicit <choice minOccurs='0'
maxOccurs='unbounded' > particle over the particle children of a
content=mixed complex type.  I'll defer to Henry on this. 	

Curt reply:

I guess it depends on what the intrepretation of "extending" a complex type that ultimately derived from a complex type that has a content of mixed.  If extending means that param is magically added
into the mixed content of its base type, then the multiplicity would be implied.  If extension in this context means appears that content declared in the derived type appears after the base
complexType's content has been satisifed then param is in the wrong place with the wrong multiplicity.  Possibly the behavior is already explicit in the schema docs. But for me to get my mind around
the schema doc, I have to work out from the schemas to schema to the prose and not the other way around.

Don wrote:
Local element and attribute declarations are one of the more powerful
features of the schema language. I make no apologies for using them. Believe
me, the WG struggled long and hard to get them to where they are now. The
least we can do as a community is use them ;-)

Curt reply:
I like the feature too, when there are differences between the elements in different contexts.  However when there are not context differences, it just makes life difficult mapping in this interim
period when you want to generate DTD's and work with non-local scope aware products.

Don wrote:
I don't know that anyone has the will to add MORE complexity to the schema
language to handle mixed content. 

Curt reply:
Actually, I thought my suggestions allowed you to appropriately constrain the content plus simplified things by eliminating the content attribute.

p.s. The links for the XSLT help file are just temporary and will be moved to my company's web site in a day or two.  

***************************************************************************
This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@x...&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/
***************************************************************************

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.