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

Re: Re: Generate key with further restriction

Subject: Re: Re: Generate key with further restriction
From: "Dimitre Novatchev" <dnovatchev@xxxxxxxxx>
Date: Tue, 9 Sep 2003 19:29:22 +0200
generate key
"Tim Müller-Seydlitz" <tms@xxxxxxxxxxxxxxxxxx> wrote in message
news:3F5DF25B.4040500@xxxxxxxxxxxxxxxxxxxxx
> Hi,
> I made an error in my initial question.
> Actually I want to generate keys in the following way:
>
> Select the content of the attributes with the name 'type' or 'base', but
> not those where the content begins with xs.
> <xsl:key name="usedTypes" match="@*[name() = 'type' and
> not(starts-with(.,'xs:'))]" use="." />

Why didn't you read and try to understand my reply to your first message?

   "@*[name() = 'type' and  not(starts-with(.,'xs:'))]

is equivalent (will match the same nodes as) to

  @type


Do you make any difference between name() and local-name() ?

Shall I copy and paste the reply I already sent?

What is the use of your asking questions and receiving answers if you then
ask the same questions again?



=====
Cheers,

Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL




> <xsl:key name="usedTypes" match="@*[name() = 'base' and
> not(starts-with(.,'xs:'))]" use="." />
>
> For example from an xsd file that contains the following specs, I would
> only like to select Account.
>
> <xs:element name="account" type="Account">
> </xs:element>
>
> <xs:element name="bankCode">
>         <xs:complexType>
>             <xs:simpleContent>
>                 <xs:extension base="xs:string">
>                     <xs:attribute name="bankCodeScheme"
> type="xs:normalizedString"/>
>                 </xs:extension>
>             </xs:simpleContent>
>         </xs:complexType>
> </xs:element>
>
> <xs:element name="baseRate" type="xs:decimal"/>
>
> Is the above statement correct? I am having some trouble with XML Spy's
> internal XSLT.
> Do namespaces extend to the content of the attribute?
>
> Regards
> Tim
>
>
>
>
>
>
>  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.