🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fr.comp.text.xml
Article #8343

XML Schema dur dur

#8343
From: Rapha�l THERY
Date: Wed, 21 Nov 2001 15:05
52 lines
2740 bytes
Bonjour,

J'ai un petit soucis avec les XML-Schema ....  je n'arrive pas � exploiter
les "d�finitions" contenues dans un fichier inclus.
exemple :
soit base.xsd
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2000/10/XMLSchema"
  xmlns="http://www.generix.fr/metier/bc4j/evenement/common"
  targetNamespace="http://www.generix.fr/metier/bc4j/evenement/common"
  elementFormDefault="qualified">

 <!-- D�finition des types simples -->
 <xsd:simpleType name="monType">
  <xsd:restriction base="xsd:string">
   <xsd:minLength value="1"/>
   <xsd:maxLength value="4"/>
  </xsd:restriction>
 </xsd:simpleType>
</xsd:schema>

soit base_etendue.xsd (il inclut base.xsd)
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet href="xsd2html.xsl" ?>
<xsd:schema  xmlns:xsd="http://www.w3.org/2000/10/XMLSchema"
  xmlns="http://www.generix.fr/metier/bc4j/evenement/common"
  targetNamespace="http://www.generix.fr/metier/bc4j/evenement/common"
  elementFormDefault="qualified">

 <xsd:include schemaLocation="base.xsd" />

 <xsd:element name="monElement">
  <xsd:complexType>
   <xsd:sequence>
    <xsd:element name="poste" type="monType" minOccurs="0" />
    <xsd:element name="quantite" type="monType" minOccurs="0" />
   </xsd:sequence>
  </xsd:complexType>
 </xsd:element>
</xsd:schema>

Comment dans ma feuille de style acceder � la d�finition de "monType"
d�finit dans base.xsd alors que je travaille avec base_etendue.xsd
(il ne faut tout de m�me pas avoir recours � la fonction document en
utilisant le param�tre schemaLocation !!!...???)

un truc du genre ci-dessous ne me retourne rien
#<xsl:value-of
select="//xsd:simpleType[@name='monType']/xsd:restriction/@base"/>#

d'avance merci
Rapha�l
Technical Details
Message-ID: <3bfbc318$0$9963$626a54ce@news.free.fr>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!opentransit.net!wanadoo.fr!proxad.net!feeder2-1.proxad.net!news2-2.free.fr!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII
X-Google-Thread: 114f60,8a2ee8d9284c6cb3,start
X-Google-Attributes: gid114f60,public
X-Google-ArrivalTime: 2001-11-21 07:07:04 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!opentransit.net!wanadoo.fr!proxad.net!feeder2-1.proxad.net!news2-2.free.fr!not-for-mail
From: "Rapha�l THERY" <raphael.thery@free.fr>
Newsgroups: fr.comp.text.xml
Subject: XML Schema dur dur
Date: Wed, 21 Nov 2001 16:05:32 +0100
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Lines: 55
Message-ID: <3bfbc318$0$9963$626a54ce@news.free.fr>
Organization: Guest of ProXad - France
NNTP-Posting-Date: 21 Nov 2001 16:07:04 MET
NNTP-Posting-Host: 195.115.154.77
X-Trace: 1006355224 news2-2.free.fr 9963 195.115.154.77
X-Complaints-To: abuse@proxad.net