RE: [xsl] XPATH

Subject: RE: [xsl] XPATH
From: "poppe chris" <pc_poppe@xxxxxxxxxxx>
Date: Mon, 17 Nov 2003 20:27:44 +0100



From: "Michael Kay" <mhk@xxxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject: RE: [xsl] XPATH
Date: Mon, 17 Nov 2003 18:57:54 -0000

XPath can only find things, it can't "add" things. You need to provide
more context about what you are trying to achieve.


I'm trying to achieve that the length value in the Sub type has the same value as the one in the element SUBSTREAM_length.

do you need more info?
Chris


Michael Kay


> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of
> poppe chris
> Sent: 17 November 2003 17:03
> To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] XPATH
>
>
>
>
> Hello,
> 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:complexType>
>        <xsd:sequence>
>            <xsd:element name="SUBSTREAM_length" type="xsd:short"/>
>            <xsd:element name="SUBSTREAM_interior" type="mctf:Sub"/>
>        </xsd:sequence>
>      </xsd:complexType>
>   </xsd:element>
>
>
> and I want to add the following:
>
> <xsd:simpleType name="Sub">
>   <xsd:restriction base="bs1:byteRange">
>      <xsd:annotation>
>        <xsd:appinfo>
>           <bs2:length value="SomeXPathExpressionToSUBSTREAM_length"/>
>        </xsd:appinfo>
>      </xsd:annotation>
>    </xsd:restriction>
> </xsd:simpleType>
>
> so i need help with that XPATH expression, cause i think its
> similar to the
> xpath in xsl no?
>
> greetings Chris
>
> _________________________________________________________________
> Volg Expeditie Robinson op de voet!
> http://entertainment.msn.be/tv/expeditierobinson/
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


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



_________________________________________________________________ Gratis e-mail ? http://www.msn.be/hotmail


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



Current Thread