XMLファイルでhtmlタグを使用したいので、xsdファイルで次の方法でhtmlフォーマットを許可しました。
<xs:element name="description">
<xs:complexType mixed="true">
<xs:sequence>
<xs:any namespace="http://www.w3.org/1999/xhtml"
processContents="lax"
minOccurs="0"
maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:element>
そして私のXMLファイルで
<description>
<p xmlns="http://www.w3.org/1999/xhtml"> This course is an introduction to the information technologies required for secure, practical information systems for electronic commerce.
Topics will be chosen from areas such as document representation (XML, DTDs, XML Schema, XSLT, CSS),
</p> security (encryption, public key, symmetric key,
PKI, authentication); kinds of attack and vulnerabilities, electronic trading (spontaneous, deliberative, auctions), electronic document management
(metadata, search, digital libraries, management and processing), recent developments and maturation of the area,
such as web application frameworks, web services, the semantic web , mobile commerce </description>
しかし、HTMLファイルに変更しても何も表示されません!(pなし)
内容をdescriptionタグ(XSDの1つの要素)内で分割したかったため、htmlタグをxslファイルに入れることができませんでした。何か斬新な方法があれば、私はそれを受け入れます。
最初は、<p xmlns="http://www.w3.org/1999/XHTML">
機能しませんでした。processContents= "lax"を入力すると、正常に機能しましたが、段落全体が1つ表示されました(実際に<p>
は機能しません)。
どうすればそれを機能させることができますか?