Hi,
I'm trying to transform XML files through the XML - Transform task into HTML pages.
Here's my XSL declaration :
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:f="mynamespace">
<xsl:output method="html" encoding="UTF-8" indent="yes" doctype-public="-//W3C//DTD HTML 4.01//EN" />
Here's the start of the output file :
<?xml version="1.0" encoding="utf-8"?>
<html xmlns:f="mynamespace">
In the task, I enabled document functions, scripts and DTD parsing. There are no parameters set.
I'm running VC 8.3.5.
My problem :
Mainly, self-closing tags. The xsl:output tag seem to be totally ignored.
If in my XSL style sheet I ask for
<div><xsl:value-of select="node"></xsl:value-of></div>
and that node is empty, the parser outputs <div/>, which is not valid HTML, and screws up the page. It is valid XML though, which is why I think the xsl:output tag is being ignored. Also the indent attribute is ignored, the omit-xml-declaration is ignored, maybe others, I stopped trying.
But when I change the values of the attributes to unsupported ones (method="not-xml" for example), then I get an error at runtime in the task telling me the value is wrong.
Is there a problem in my declarations for the parser used by VC ?
By the way, which parser is it ? Maybe that could help.
Edited by user
2018-09-12T14:11:19Z
|
Reason: Omitted VC version