Subject: RE: filter
From: Paul <reganmian@xxxxxxxxx>
Date: Wed, 4 Dec 2002 05:52:36 -0800 (PST)
|
Hey Tom
Many thanks your reply !
I need to output the 'SCSMSG' in sequence, simplily
like :
Group is GRP-Harry-GROUP :
snoopy-a Starts
snoopy-b Starts
I was supposed to change 3 lines to keep the same
output as above, because I can't use the
[starts-with(@ref, 'GRP')] as a filter, but need to
make another filter base on the fact of:
/xs:element/xs:complexType/xs:sequence/xs:element[@maxOccurs=5]
the reason is need more flexibility.
And unfortunately the number 5 can't be used(as you
suggested), as the number will always be changed for
different schema, so I tried to use boolean to change
and the fact is group element will always apply to
a structure:
/xs:element/xs:complexType/xs:sequence/xs:element with
the occuring of @maxOccurs attribute
many thanks
Paul
--- TSchutzerWeissmann@xxxxxxxxxxxxxxxx wrote:
> Hi Paul
>
> What output do you want from the example you gave?
> For example, are you just
> looking for a way to insert elements into other
> element by reference, ie,
> where an element has a @ref that matches an
> element's @name, replace the
> first one with the one it refers to?
>
> Sometimes an explanation is easier to understand
> than lots of code and gets
> a solution suited to it, rather than one that just
> works.
>
> regards,
> Tom
>
> ===== schema =====
> <xs:schema
> xmlns:xs="http://www.w3.org/2001/XMLSchema"
> elementFormDefault="qualified"
> attributeFormDefault="unqualified">
> <xs:element name="GRP-Harry-GROUP">
> <xs:complexType>
> <xs:sequence>
> <xs:element ref="Harry-GROUP-ROW"
> maxOccurs="unbounded"/>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
>
> <xs:element name="SCSMSG">
> <xs:complexType>
> <xs:sequence>
> <xs:element ref="GRP-Harry-GROUP"/>
>
> <xs:element ref="snoopy-a"/>
> <xs:element ref="snoopy-b"/>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> </xs:schema>
>
>
> XSL-List info and archive:
> http://www.mulberrytech.com/xsl/xsl-list
>
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
- Re: filter, (continued)
- Joerg Heinicke - Tue, 3 Dec 2002 13:31:54 -0500 (EST)
- Paul - Tue, 3 Dec 2002 13:44:15 -0500 (EST)
- Paul - Tue, 3 Dec 2002 18:24:26 -0500 (EST)
TSchutzerWeissmann - Wed, 4 Dec 2002 06:15:23 -0500 (EST)
- Paul - Wed, 4 Dec 2002 08:47:22 -0500 (EST) <=
TSchutzerWeissmann - Wed, 4 Dec 2002 10:28:01 -0500 (EST)
- Paul - Wed, 4 Dec 2002 13:13:48 -0500 (EST)
- Paul - Wed, 4 Dec 2002 14:39:48 -0500 (EST)
|
|