|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Variables and HTML
Hi.
We use d-o-e extensively for the use case Michael describes, namely we format the last stage of output from a Gordian publishing system. The XML instance that gets built for us quite often contains text nodes that consist of escaped HTML blobs. We also use it for two other less common cases. One is where because of some browser vagary we want to generate and output HTML that's not valid XHTML. We can't embed it in the XSL because it would cause the XSL file to be ill-formed. Neither can we use xsl:element to construct it. The last use case is where we do (or could) have a well formed output doc but because of the way it is constructed the XSL becomes badly formed. Most obviously this occurs where the start and end tag are generated in different xsl:templates. I've had good luck getting rid of most of these so I don't have an example on hand but I'm not quite willing to rule it out as logically impossible. I think in all cases character maps can replace d-oe but I had some questions about the approach you outline below: On Fri, 11 Mar 2005 10:18:54 GMT, David Carlisle <davidc@xxxxxxxxx> wrote: In 2.0 you can always replace this by I read this (with the addition of the closing parenthesis) as replacing less than greater than and ampersand with three unfamiliar character entities. Together with a character mao that maps back: I read this as defining instructions for the serializer to replace the unfamiliar charcters above with the appropriate output characters (<> and & in final output). The way I read the w3c spec, it looked like you'd have to enclose those three output-character definitions in a named character map and make the serializer aware of that map by specifying the name in the use-character-map attribute of xsl:output. Did you assume that or am I missing something? Overall I think this is really neat. For the first case (escaped html in input) we run the translate you provide above on the node. For the second two, we simply use  in place of < as needed. Is this correct? Thanks in advance! ----------->Nathan
-- .:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:. Nathan Young A: ncy1717 E: natyoung@xxxxxxxxx
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








