|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: scripting
| -----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
|
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








