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

Re: xsl] XSL and XMLSchema with "xsd:"

Subject: Re: xsl] XSL and XMLSchema with "xsd:"
From: Edward Kennedy <ekennedy@xxxxxxxxx>
Date: Fri, 27 Apr 2001 13:57:03 -0400
xsd xsl text
Thank you, I hadn't done that.

But something else....

In the style sheet I am parsing an xml file, but I am trying to look in
the associated schema file(s) to get more information about particular
elements.  I have brought the schemas into the stylesheet this way:
  	<xsl:variable name="topschemafile" select="document('TopSchema.xsd')"
/>
  	<xsl:variable name="genschemafile"
select="document('GeneralElements.xsd')" />

The I'm trying to grab information from them the following way:

	<xsl:for-each select="$topschemafile/schema">
		<xsl:text>found a schema line</xsl:text>
		<xsl:for-each select="annotation">
			<xsl:text>found a annotation line</xsl:text>
			<xsl:for-each select="appinfo" >
				<xsl:text>appinfo is : <xsl:value-of select="." /> </xsl:text>
			</xsl:for-each>
		</xsl:for-each>
	</xsl:for-each>

This not getting anything from the schema files.

Any other ideas?

Thanks

Eric van der Vlist wrote:
> 
> Edward Kennedy wrote:
> >
> > When trying to get information out of here, XSL won't let me select
> > items with xsd: as part of the name.
> 
> Had you declared the xsd prefix in your stylesheet ???
> 
> Eric
> --
> See you in Hong Kong for www10:
>                      http://www.www10.org/program/w10-half-tut.shtml#ta5
> ------------------------------------------------------------------------
> Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
> http://xsltunit.org      http://4xt.org           http://examplotron.org
> ------------------------------------------------------------------------
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

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
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.