Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version = "1.0"?>
- <?xml-stylesheet type="text/css" href="5a.css" ?>
- <RU>
- <b> Books </b><br />
- <e> Electronics </e><br />
- <s> Stationaries </s><br />
- <c> Cloths</c><br />
- <o> other </o><br />
- </RU>
- 5a.css
- b{ display:block; color:blue; font-style:italic;}
- e{ display:block;color:green;font-style:italic;}
- s{ display:block;color:red;font-style:italic;}
- c{ display:block;color:blue;font-style:italic;}
- o{ display:block;color:black;font-style:italic;}
- 5b.xml
- <?xml version="1.0"?>
- <?xml-stylesheet type="text/xsl" href="5b.xsl" ?>
- <RU>
- <b> Books </b>
- <e> Electronics </e>
- <s> Stationaries </s>
- <c> Cloths </c>
- <o> Other </o>
- </RU>
- 5b.xsl
- <?xml version = "1.0"?>
- <xsl:stylesheet version = "1.0"
- xmlns:xsl = "http://www.w3.org/1999/XSL/Transform"
- xmlns="http://www.w3.org/1999/xhtml">
- <xsl:template match = "RU">
- <html>
- <head>
- <title> Style sheet for 5b.xml </title>
- </head>
- <body>
- <h2> Shopping </h2>
- <span style = "font-style: italic; color: blue;"> Books:
- </span> <xsl:value-of select = "b" /> <br />
- <span style = "font-style: italic; color: blue;"> Electronics:
- </span> <xsl:value-of select = "e" /> <br />
- <span style = "font-style: italic; color: blue;"> Stationary:
- </span> <xsl:value-of select = "s" /> <br />
- <span style = "font-style: italic; color: blue;"> Clothes:
- </span> <xsl:value-of select = "c" /> <br />
- <span style = "font-style: italic; color: blue;"> Others:
- </span> <xsl:value-of select = "o" /> <br />
- </body>
- </html>
- </xsl:template>
- </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement