xsl-list
[Top] [All Lists]

RE: Table and Image Properties

2003-04-26 06:39:51
You want to give me your private e-mail, or is it ok to send attachments on
this list?

tks,

jwc

-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com]On Behalf Of 
Sundar
Shanmugasundaram
Sent: Saturday, April 26, 2003 8:53 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] Table and Image Properties


Can you send me the exact xml and xsl files?
I could give a try

-----Original Message-----
From: Jack Cane [mailto:jwcane(_at_)enw-ltd(_dot_)com]
Sent: Saturday, April 26, 2003 6:30 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] Table and Image Properties


Sundar,

Sorry, table alignment does not change. the width attribute declaration is
the same as the one I sent, I believe.

tks,

jwc


-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com]On Behalf Of 
Sundar
Shanmugasundaram
Sent: Saturday, April 26, 2003 8:23 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] Table and Image Properties


Hi,

You could try giving

<table align="{n1:FigLocation}" border="0">

        <xsl:attribute name="width">
                <xsl:value-of select="n1:GraphicWidth" />
        </xsl:attribute>

Does this help you?

sundar

-----Original Message-----
From: Jack Cane [mailto:jwcane(_at_)enw-ltd(_dot_)com]
Sent: Saturday, April 26, 2003 5:53 PM
To: XSL-List(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Table and Image Properties


I am displaying graphics in a frameless table that specifies table location
(left, right, center) and figure width in pixels. FigLocation and
GraphicWidth are not controlling the rendering of the table and graphic.
What am I doing wrong?

=========================

The schema declarations are:

   <xs:complexType name="IllustrationType">
      <xs:sequence>
         <xs:element name="FigCaption" type="xs:string"/>
         <xs:element name="FigNumber" type="xs:byte"/>
         <xs:element name="GraphicURL" type="xs:string"/>
         <xs:element name="GraphicWidth" type="xs:integer"/>
      </xs:sequence>
      <xs:attribute name="FigLocation" use="optional" default="Right">
         <xs:simpleType>
            <xs:restriction base="xs:string">
               <xs:enumeration value="Default"/>
               <xs:enumeration value="Left"/>
               <xs:enumeration value="Center"/>
               <xs:enumeration value="Right"/>
            </xs:restriction>
         </xs:simpleType>
      </xs:attribute>
   </xs:complexType>

The xml declarations are:

<Illustration>
        <!--some attributes omitted for brevity-->
        <FigLocation>
                Right
        </FigLocation>
        <GraphicWidth>
                293
        </GraphicWidth>
</Illustration>

Finally, the formatting instructions are:

<table align="@FigLocation" border="0">

<img border="0">
        <xsl:attribute name="src">
                <xsl:value-of select="n1:GraphicURL" />
        </xsl:attribute><!--By itself, this works OK-->
        <xsl:attribute name="width">
                <xsl:value-of select="n1.GraphicWidth" />
        </xsl:attribute>
</img>

=======================

tks,

jwc



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

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




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

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




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



<Prev in Thread] Current Thread [Next in Thread>