2009-03-18 4 views
1

Возможно ли создать файл CHM или HTML-справку (аналогичную тем, которые были созданы Sandcastle) из файла XSD? Текст в узлах xs:documentation содержит, ну, документацию.CHM-файл из XSD-файлов

Пример отрывок из одного из XSD-файлов у меня есть это

<xs:element name="Request" type="RequestType"> 
    <xs:annotation> 
     <xs:documentation> 
      <html:p>The Request message contains a number of <html:i>RequestType</html:i> elements for the server to process.</html:p> 
      <html:p>A <html:i>Request</html:i> will always result in a <html:i>Response</html:i> message being returned by the server, and <html:b>must</html:b> contain an <html:b>xmlns=[<html:i>Default namespace</html:i>]</html:b> declaration.</html:p> 
     </xs:documentation> 
    </xs:annotation> 
</xs:element> 
<xs:element name="Response" type="ResponseType"> 
    <xs:annotation> 
     <xs:documentation>The Response message contains the result of a previous <html:i>Request</html:i> message, with one <html:i>ResponseType</html:i> element for each <html:i>RequestType</html:i> sent to the server.</xs:documentation> 
    </xs:annotation> 
</xs:element> 

ответ

1

Там в XSLT называется «xs3p», который можно загрузить с xml.fiforms.org/xs3p.

Вы можете использовать любой XSLT-процессор для преобразования XSD в HTML - я использую «nxslt3» Олега Ткаченко.

Вторым шагом было бы объединение нескольких HTML в CHM с использованием некоторого Html-справки.

Марк

PS: забыл упомянуть - оба инструмента свободны, конечно :-)

Смежные вопросы