[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Forget to add <font>in my previuos query

Subject: Re: Forget to add <font>in my previuos query
From: "cutlass" <cutlass@xxxxxxxxxxx>
Date: Mon, 1 Oct 2001 09:26:35 +0100
xsl attribute add style value
Hello Bikash,

before i comment on anything in your code, i notice that your XSLT namespace
is wrong.

replace your xsl namespace with

xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

check it out the explanation at  www.netcrucible.com

once u have done this, then u are using XSLT, not M$ specific code.

cheers, jim fuller

----- Original Message -----
From: "Bikash Paul" <bikashpaul_2001@xxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Monday, October 01, 2001 8:16 AM
Subject:  Forget to add <font>in my previuos query


> Dear sir,
> I have problem with my xsl file.I want to extract
> value of tag and style them with their corroesponding
> attribute value.My xsl working for extracting value of
> tag and style them with one attribute that means with
> size only it mix the color with previous(that is when
> i set color="blue" then it mix with the default color
> "black" and it shown brown color on browser)and font
> face totally not working.I couldn't understand where I
> done a mistake.Can u plz guide me how I can slove my
> problem.Below r my codes.
>
> xml file:-
>
> <?xml version="1.0"?>
>
> <?xml-stylesheet type="text/xsl" href="ebook1.xsl"?>
>
> <root>
>
> <para><style size1="7" color1="blue"
> face1="Arial">This is only for test</style></para>
>
> </root>
>
> xsl file:-
>
> <?xml version="1.0"?>
>
> <xsl:stylesheet
> xmlns:xsl="http://www.w3.org/TR/WD-xsl">
>
> <xsl:template match="/">
>
> <xsl:apply-templates/>
>
> </xsl:template>
>
> <xsl:template match="root">
>
> <xsl:apply-templates/>
>
> </xsl:template>
>
> <xsl:template match="para">
>
> <xsl:for-each select="style">
> <font>
> <xsl:attribute name="color">
>
> <xsl:value-of select="@color1"/>
>
> </xsl:attribute>
>
> <xsl:attribute name="size">
>
> <xsl:value-of select="@size1"/>
>
> </xsl:attribute>
>
> <xsl:attribute name="face">
>
> <xsl:value-of select="@face1"/>
>
> </xsl:attribute>
>
> <xsl:value-of select="."/>
> </font>
>
> </xsl:for-each>
>
> </xsl:template>
>
> </xsl:stylesheet>
>
> Regards
>
> Bikash Paul
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Listen to your Yahoo! Mail messages from any phone.
> http://phone.yahoo.com
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.