This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Problem with xsl file
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Problem with xsl file
- From: "Roberts A.L." <a dot l dot roberts at swansea dot ac dot uk>
- Date: Mon, 1 Oct 2001 09:25:46 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
Dear Bikash
Seems OK so far, can you post the results obtained once it has passed
through the processor - maybe it's a standard HTML problem?
Alex
-----Original Message-----
From: Bikash Paul [mailto:bikashpaul_2001@yahoo.com]
Sent: 01 October 2001 06:10
To: XSL-List-Digest@lists.mulberrytech.com
Subject: [xsl] Problem with xsl file
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">
<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="."/>
</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