Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.
version: INS312apache: 1326problem: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 one3. 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 advancewith regardsMichael
Hello Michael,a solution in Tamino XQuery (4) isfor $b in input()/doc/bookreturn{$b/@*}I cannot find any solution in Tamino X-Query (3).Best regardsWalterTamino R&D