|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: <xsl-script>
>
> <xsl:template match="P">
> <paragraph><xsl:apply-templates></paragraph>
> </xsl:template>
>
> <xsl:template match="INS">
> <underline><xsl:apply-templates></underline>
> </xsl:template>
>
> <xsl:template match="INS[@author='john']">
> <underline><bold><xsl:apply-templates></bold></underline>
> </xsl:template>
>
> <xsl:template match="DEL">
> <strike><xsl:apply-templates></strike>
> </xsl:template>
>
> Here's where you can prove me wrong. Show me how this would look in your
> favorite programming language with an appropriate function library.
A sample in my favorite language, without a function library :-)
down-translate ; start OmniMark program
element P
output "<paragraph>%c</paragraph>%n"
element INS when not attribute author matches (value-start 'john' value-end)
output "<underline>%c</underline>%n"
element INS when attribute author matches (value-start 'john' value-end)
output "<underline>%c</underline>%n"
element DEL
output "<strike>%c</strike>%n"
Rick Geimer
National Semiconductor
rick.geimer@xxxxxxx
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








