XSL/XML/XHTML: Include XML content and write to XHTML
Posted on 2006-06-23
we have the following XSL scriptlet:
<xsl:variable name="webDescription" select="/Root/Object/ExternalReferences/Keyword[Characteristic='ZPDB_WEBDESCRIPTION']/Value"/>
<xsl:variable name="webDescriptionParsed" select="translate($webDescription, '\', '/')"/>
Basically, it will read an XML file from the file server and should include the HTML content to the XHTML output stream.
The XHTML from XSL engine is as follows:
The XHTML 1.0 Strict validator has a problem with html/xmlns missiong and <P> not allowed.
Is there a trick how the XML header should look like so that HTML will be displayed and validated or should the XML file be addressed with XPath - but how to apply the format tags then?!