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

RE: Related resources

  • From: Jonathan Borden <jborden@m...>
  • To: Edd Dumbill <edd@u...>
  • Date: Tue, 02 Jan 2001 22:33:44 -0500

xslt resource bundle
Edd Dumbill wrote:
>
>
>
> OK, I'll try again on this.  It seems to me that the sort of bundles we
> might want to be able to apply to documents in an indirected fashion, we
> might also reasonably want to apply in a hardwired manner too.  The
> problem I think I want solving is some kind of reconciliation between
> the proliferation of things like:
>
> <?xml-stylesheet .. ?>
> xsi:schemaLocation
>
> Seems to me that we're solving this problem along the way here. The
> things that we're defining for namespaces work equally well for
> document instances.  In which case not only do I want the ability to
> hardwire this *if I wish*, but I'd also like to be able to apply bundles
> to document fragments (ie.  anything an XPointer can reference).
>
> I'm hoping to solve the sort of problem I describe in
> http://lists.xml.org/archives/xml-dev/200012/msg00120.html
>
> The way I see it I'm looking for a standard way (by which I mean a
> vocabulary and syntax(es) on which we all agree) to describe related
> resources, and then ways to attach these to a namespace, a document, or
> a document fragment--or inline them when deemed necessary.  Can others
> see this use case?


Sure. A resource directory description is both defined as content of XHTML,
but importantly has XHTML content, so such resource descriptions could be
inlined within a document, or alternatively 'attached' to a document (or
xpointer) as metadata using an extended link.

rddl:resource inlined:

	<example:myDocument>
		<rddl:resource
			xlink:arcrole="http://www.openhealth.org/RDDL/arcrole.htm#XSLT"
			xlink:href="...xsl stylesheet"
		><p class="resource">This is the XSLT stylesheet for
example:myDocument</p>
		 </rddl:resource>
		<rddl:resource
			xlink:arcrole="http://www.openhealth.org/RDDL/arcrole.htm#XSD"
			xlink:href="...xml schema..."
		><p class="resource">This is the XML Schema for example:myDocument</p>
		 </rddl:resource>
	</example:myDocument>

and using rddl:resource as metadata for an xpointer:

	(note that the semantics of the RDF 'about' attribute means 'apply to this
URI')

first attaching an external resource directory description:

	<rddl:bundle xlink:type="extended">
		<rddl:resource xlink:type="locator"
				   xlink:label="remote"
				   xlink:href="...xpointer here.."/>
		<rddl:resource
				xlink:type="arc"
				xlink:arcrole="http://www.openhealth.org/RDDL/"
				xlink:from="xpointer">
			<p>'Attaching' a RDDL resource directory description to an xpointer</p>
		</rddl:resource>
	</rddl:bundle>

and secondly 'attaching' an inlined a resource bundle to an xpointer

	<rddl:bundle xlink:type="extended">
		<rddl:resource xlink:type="locator"
				   xlink:label="remote"
				   xlink:href="...xpointer here.."/>
		<rddl:resource
			xlink:type="arc"
			xlink:from="xpointer"
			xlink:arcrole="http://www.openhealth.org/RDDL/arcrole.htm#XSLT"
			xlink:href="...xsl stylesheet"
		><p class="resource">This is the XSLT stylesheet for the XPointer</p>
		 </rddl:resource>
		<rddl:resource
			xlink:type="arc"
			xlink:from="xpointer"
			xlink:arcrole="http://www.openhealth.org/RDDL/arcrole.htm#XSD"
			xlink:href="...xml schema..."
		><p class="resource">This is the XML Schema for the XPointer</p>
		 </rddl:resource>
	</rddl:bundle>

Note that one could equivalently express these semantics by replacing the
extended xlink and locator resource with an rdf:about="...xpointer..." on
the rddl:bundle.

Nice use case.

Jonathan


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.