[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] using entities
I am trying to figure out how I can make use of enitity declarations when using XSL/XSL-FO to generate PDFs. In the XML I am using each file has a declaration similar to this: <!ENTITY ICN-LJ200-A-J344405-A-24210-00002-A-001-01 SYSTEM "ICN-LJ200-A-J344405-A-24210-00002-A-001-01.cgm" NDATA cgm> In my XML where there is a graphic I have the following markup: <figure id="F0001"> <title>Radio Altimeter Antenna</title> <graphic id="gra001" infoEntityIdent="ICN-LJ200-A-J344405-A-24210-00002-A-001-01"></graphic> </figure> The attribute infoEntityIdent matches the entity name at the beginning of the file. To get the graphic in the PDF this in the XSL: <xsl:for-each select="./graphic"> <xsl:variable name="graphFile" select="./@infoEntityIdent"/> <xsl:variable name="gFileDir" select="concat($graphFile,'.cgm')"/> . <fo:external-graphic src="url('{$gFileDir}')" display-align="center" content-height="21cm"/> </xsl:for-each> I want to find out if it's possible to use the entity declaration to get the filename, as it may not always be a .cgm (or any other format for that matter) graphic. Thanks for the help, Tom
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|