how to get all attribute information

version: INS312
apache: 1326

problem:
1. have defined the following TSD3:
<?xml version = "1.0" encoding = "UTF-8"?>
<xs:schema xmlns:xs = “XML Schema” xmlns:tsd = “http://namespaces.softwareag.com/tamino/TaminoSchemaDefinition”>
xs:annotation
xs:documentation DTD for romania test


</xs:documentation>
xs:appinfo
<tsd:schemaInfo name = “rom_tst”></tsd:schemaInfo>
</xs:appinfo>
</xs:annotation>
<xs:element name = “doc”>
xs:complexType
xs:sequence
<xs:element ref = “book”></xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name = “book”>
xs:annotation
xs:appinfo
tsd:elementInfo
tsd:physical
tsd:native
tsd:index
tsd:standard</tsd:standard>
tsd:text</tsd:text>
</tsd:index>
</tsd:native>
</tsd:physical>
</tsd:elementInfo>
</xs:appinfo>
</xs:annotation>
xs:complexType
xs:sequence
<xs:element ref = “chapter”></xs:element>
</xs:sequence>
<xs:attribute name = “title” type = “xs:string” use = “required”>
xs:annotation
xs:appinfo
tsd:attributeInfo
tsd:physical
tsd:native
tsd:index
tsd:standard</tsd:standard>
</tsd:index>
</tsd:native>
</tsd:physical>
</tsd:attributeInfo>
</xs:appinfo>
</xs:annotation>
</xs:attribute>
<xs:attribute name = “author” type = “xs:string” use = “required”>
xs:annotation
xs:appinfo
tsd:attributeInfo
tsd:physical
tsd:native
tsd:index
tsd:standard</tsd:standard>
tsd:text</tsd:text>
</tsd:index>
</tsd:native>
</tsd:physical>
</tsd:attributeInfo>
</xs:appinfo>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name = “chapter”>
xs:complexType
xs:sequence
<xs:element ref = “page”></xs:element>
</xs:sequence>
<xs:attribute name = “name” type = “xs:string” use = “required”>
xs:annotation
xs:appinfo
tsd:attributeInfo
tsd:physical
tsd:native
tsd:index
tsd:standard</tsd:standard>
</tsd:index>
</tsd:native>
</tsd:physical>
</tsd:attributeInfo>
</xs:appinfo>
</xs:annotation>
</xs:attribute>
<xs:attribute name = “startpage” type = “xs:string” use = “required”>
xs:annotation
xs:appinfo
tsd:attributeInfo
tsd:physical
tsd:native
tsd:index
tsd:standard</tsd:standard>
tsd:text</tsd:text>
</tsd:index>
</tsd:native>
</tsd:physical>
</tsd:attributeInfo>
</xs:appinfo>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name = “page” type = “xs:string”></xs:element>
</xs:schema>
2. i have loaded the following XML data file:
<?xml version="1.0" encoding="ISO-8859-1"?>



page one



3. now when issuing th following xpath expression
//book/@*
i get the following result:


BUT i would like to get a result like:


how to do this???

thanks in advance
with regards

Michael

Hello Michael,
a solution in Tamino XQuery (4) is

for $b in input()/doc/book
return
{$b/@*}

I cannot find any solution in Tamino X-Query (3).

Best regards
Walter
Tamino R&D