[XSL-LIST Mailing List Archive Home]
[xsl] Re: XPATH
Hi there, Chris.
Please don't be offended if I'm totally mistaken (which I may very
well be), but aren't you confusing things here?
You seem to have two schema fragments and (from what I've understood)
want to dynamically build a schema using an XSLT stylesheet. So why
do you say "similar to the XPath in XSL" if you in fact want to
build an XSLT stylesheet?
Anyway, assuming that you want to build a stylesheet to produce
schemas, all you'd need (for that specific bit of code) would be
something like this:
Does this give you any useful ideas?
On 17 Nov 2003 at 18:02, poppe chris wrote:
> I'm facing the following problem, it deals with xpath but I really hope I
> can solve it withouth xslt (so maybe this isnt the right place to post it)
> I have the following code
> <xsd:element name="SUBSTREAM">
> <xsd:element name="SUBSTREAM_length" type="xsd:short"/>
> <xsd:element name="SUBSTREAM_interior" type="mctf:Sub"/>
> and I want to add the following:
> <xsd:simpleType name="Sub">
> <xsd:restriction base="bs1:byteRange">
> <bs2:length value="SomeXPathExpressionToSUBSTREAM_length"/>
> so i need help with that XPATH expression, cause i think its similar to
> the xpath in xsl no?
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list