[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: expressing DTDs with UML
To your example: package - document type I prefer namespace at this point. I'm still working out what nested packages imply for namespaces. class - a tag attribute - a tag parameter Heading down the path of "all content in attribute values" here. I suppose you could stereotype one class attribute as <<Content>>. association - hyperlink UML can show navigation, so you can show which end implies an ID attribute, which end an IDREF. It is time to start thinking about generating XLink link attributes as well, so we need to stereotype the association as <<ID/IDREF>> or <<XLINK>> aggregation - allows expression of tag hierarchy e.g. <car> ... <wheel location="left_rear"></wheel></car> UML has a hard time with ordered content. A DTD often expresses a content model with sequence constraints "(head,para*)". Notice how easy it is to find an example from the XML-as-document space rather than the XML-as-data space. inheritance - a means for sharing / inheriting attributes, relationships DTDs as defined today don't need/use methods. Overall, though, I think it is less interesting to figure out how to model DTDs with UML than it is to map business models developed in UML into DTDs, without bending the business model to fit a preconceived notion of what a good DTD should look like. Cheers, David vun Kannon ***************************************************************************** The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing KPMG client engagement letter. ***************************************************************************** XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|