[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
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="." />
<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="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?
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Re: Re: [xsl] Generate key with further restriction
Subject: Re: Re: [xsl] Generate key with further restriction From: Tim Müller-Seydlitz <tms@xxxxxxxxxxxxxxxxxx> Date: Tue, 09 Sep 2003 17:31:39 +0200 |
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="." />
<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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Re: Generate key with further, Dimitre Novatchev | Thread | Re: [xsl] Generate key with further, David Carlisle |
Re: [xsl] Getting error in xalan !!, andrew . curry | Date | Re: [xsl] Getting error in xalan !!, Manolis Mavrikis |
Month |