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

Re: PSVI using existing infoset items

  • From: Francis Norton <francis@r...>
  • To: Eric van der Vlist <vdv@d...>
  • Date: Wed, 17 Oct 2001 19:12:12 +0100

Re:  PSVI using existing infoset items
Hi Eric,

Eric van der Vlist wrote:
> 
> As a last alternative, it would also be possible (and quite simple) to
> pass the 2 infosets (source document and PSVI) to a transformation (one
> as source, the second as a parameter). The way to link a node between
> the source and the matching information of the PSVI doesn't seem
> obvious, though, and I don't think it could easily do the trick.
> 
Yes, the link poses the old join question. I think you'd need something
like an extension function so that you could get the context node into
the function as a parameter without changing context, eg

<xsl:variable name="cantHaveTopLevel_value-of_Elements"
select="psvi-init(/)" />
...
<xsl:apply-templates select=".//*[psvi-info(.)/@type='xyz:myType']" />

Apart from unique element names and unique type names, I'd like access
to:

[1]	does the current element type inherit from type X?

[2]	does it inherit from type X purely through extension? (ie would it
be safe to apply type X templates to this element?)

[3]	an enumeration of its inheritance tree, if any

[4] 	its facets, if any

And I'd like this info to be represented in an easily XPath query-able
manner.

Does this sound a reasonable start?

Francis.

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.