This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: xsl] XSL and XMLSchema with "xsd:"
actually I found my problem, thanks for the help. It was a user error,
of course.
Edward Kennedy wrote:
>
> 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
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list