I've got a tricky bit of web design going whereby I pass a parameter to my xml parser (Saxon) via the command line. For instance, to transform my xml database into html pages, I run a batch file with multiple lines of the type:
saxon -o myOutputfile.html myXMLFile.xml myXSLFile.xsl...
BUT! I just came across this page:
http://www.dpawson.co.uk/xsl/sect2/cdata.html
It basically explains how to do just what we are trying to do, put HTML into XML. They describe use of the <xsl:copy-of> tag and also use of an http namespace for html content.
I'm just reading it now, and since...
I thought I did, but the best I was wrong. I inserted some CDATA regions into my XML like:
<![CDATA[<em>]]>empahsize me<![CDATA[</em>]]>
but somewhere in the process the < becomes a < and the > becomes > and it's therefore not interpreted as a tag but as text. I wonder if there's...
I have a similar question, I would like to have a CDATA Element declared like:
<!ELEMENT name CDATA>
and then in the xml file:
<name>Hi, I can use <strong>strong</strong> tags if I feel like it </name>
but I get two distinct problems when running through a validator (validator.w3.org):
1)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.