Hi.
I have the following XML ..
- <?xml-stylesheet type="text/xsl" href="try.xslt"?>
-
<head>
-
<title>Title</title>
-
<desc> <p>Description<ul><li>item 1</li><li>item 2</li></ul></p>
-
</desc>
-
</head>
I am trying to transform it into the following HTML using XSLT.
- <html>
-
<body>
-
<p style="font-size: 11px; line-height: 15px;">
-
<!-- content of the <desc> tag in the XML should appear here.
-
</p>
-
</body>
-
</html>
The problem is that I have some styles defined for the para tag above in the HTML. This doesn't cascade down into the para tags present in the content of the <desc> tag in the XML.
What I get is this...
- <html>
-
<body>
-
<p style="font-size: 11px; line-height: 15px;">
-
<p>Description<ul><li>item 1</li><li>item 2</li></ul></p></p>
-
</body>
-
</html>
I have been asked not to use CSS due to earlier problems in getting it to display correctly in certain email clients and instead use only inline styles. I also don't have control over the XML and I have been informed that the content of the <desc> tag will contain rich text (with HTML formatting tags).
So, is there anyway I can cascade the styles defined above to the para tags within the content of the <desc> tag?
Any help/pointers is appreciated. Thanks.