Subject: RE: [xsl] XSL and "discontinuous" tags From: "Michael Kay" <mhk@xxxxxxxxx> Date: Mon, 14 Apr 2003 16:21:42 +0100 |
> > I have an XML file that is somewhat unprofessional in design, > because it does this (essentially) > > <quoteBegin/> this is a quote > <p> with a paragraph inside </p> > <p> and another, but the quote ends here <quoteEnd/> </p> There's nothing unprofessional about this if the structure really isn't hierarchic. But it does make it difficult to handle. Jeni Tennison has doing a fair bit of work with parallel markup structures, there may be some tricks on her web site. > > I want to replace in the output the quoteBegin with a <font> > tag, and the <quoteEnd> with a closing font tag (this is > rendering to old HTML, so I am going to ignore, for the > moment, the mal-formattedness of this in XHTML). However, the > XSL parser won't let me do this "End tag 'font' does not > match the start tag...". Is there a way around this in XSL? > No, the result of the transformation is by definition a tree; it has to be hierarchic, and this means that the serialization of the result will always be well-formed. XSLT instructions don't output tags, they output nodes in the result tree. Michael Kay Software AG home: Michael.H.Kay@xxxxxxxxxxxx work: Michael.Kay@xxxxxxxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XSL and "discontinuous" t, David Carlisle | Thread | [xsl] apply-templates - A doubt., Nirmala R |
Re: [xsl] Grouping by an attribute , David Carlisle | Date | RE: [xsl] saxon, Michael Kay |
Month |