Subject: RE: scripting From: Jonathan Marsh <jmarsh@xxxxxxxxxxxxx> Date: Thu, 26 Feb 1998 13:57:03 -0800 |
| -----Original Message----- | From: Rakesh Mohan [mailto:rakesh@xxxxxxxxxxxxxx] | Sent: Thursday, February 26, 1998 1:21 PM | Is there a way to convert | | <img>foo.jpg</img> | | to <img src="foo.jpg"> without scripting? Not in the current proposal. In MSXSL this is not hard: <img src="=text" /> | Also, in the Miscrosoft example summary.xsl | | we have | <rule> | <target-element type="PREVIEW-SMALL"/> | <IMG src='=getAttribute("src")' | width='=getAttribute("width")' | height='=getAttribute("height")' | alt='=getAttribute("alt")' | border="1px solid black"/> | </rule> | | how come the closing /> (in border=...) get converted to > MSXSL currently transforms into an output tree and then serializes the tree as HTML text. We defined the serialization such that any leaf node (such as the one above) is output without a closing tag and without a trailing "/". This can lead to some strange effects (although I believe your example is providing correct and expected behavior) that we will address better in future releases. | Handling HTML tags which have no end tag: | how do I introduce an <hr> tag in the action part of a rule? Since XSL is XML format, leaf node tags must follow XML rules - <HR/>, <BR/>, <IMG/> are three examples of HTML element types that follow XML notation. You will find examples and more explanation of this in the MSXSL Tutorial at http://www.microsoft.com/xml/xsl/. Jonathan Marsh XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
scripting, Rakesh Mohan | Thread | Updated: Sparse (JavaScript based X, Jeremie Miller |
Re: More XSL Discussion, Paul Prescod | Date | Re: Recognizing Sequences (was More, Henry Thompson |
Month |