[XSLT] Xml validé XSD puis transformé via XSLT
bonjour
j'essaie de faire une tranformation XSLT suite à une validation XSD
mon xml :
Code:
1 2 3 4 5 6 7 8 9 10
|
<?xml version="1.0" encoding="UTF-8"?>
<fab:abc xmlns='http://www.test.com/XML/FAB'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xmlns:fab='http://www.test.com/XML/FAB'
xsi:schemaLocation='http://www.test.com/XML/FAB file:/C:/TEST/ValTrans/ValTrans/src/valtrans/abcXSD.xsd'
>
<fab:Aa>azerty</fab:Aa>
<fab:Bb>abcdef</fab:Bb>
</fab:abc> |
mon xsd:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:fab="http://www.test.com/XML/FAB"
targetNamespace="http://www.test.com/XML/FAB"
xmlns="http://www.test.com/XML/FAB"
elementFormDefault="qualified">
<xsd:element name="abc" type="definition"/>
<xsd:complexType name="definition">
<xsd:sequence>
<xsd:element name="Aa" type="xsd:string"/>
<xsd:element name="Bb" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema> |
mon xsl:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13
|
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:output method="text"/>
<xsl:template match="/">
<xsl:value-of select="./abc/Aa"/>;<xsl:value-of select="./abc/Bb"/>;
</xsl:template>
</xsl:stylesheet> |
La validation avec le XSD se passe tres bien, j'effectue donc la transformation XSL.
le résultat attendu :
le résultat actuel :
Mon problème vient du XSL mais je n'arrive aps à trouver.
Pouvez vous m'aider SVP :)