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

Table and Image Properties

Subject: Table and Image Properties
From: "Jack Cane" <jwcane@xxxxxxxxxxx>
Date: Sat, 26 Apr 2003 08:22:59 -0400
jack image
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


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.