External Links

Contact Us or call 1-877-932-8228
External Links

External Links

The syntax of an external link is as follows.

<fo:basic-link external-destination="url('http://www.webucator.com')"> Webucator </fo:basic-link>

This link will not contain any formatting. To make the link blue and underlined, it should be modified as follows.

<fo:basic-link external-destination="url('http://www.webucator.com')" color="blue" text-decoration="underline"> Webucator </fo:basic-link>

The code sample below will output links for each Beatle.

Code Sample:

LinksAndGraphics/Demos/Beatles.fo
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
---- C O D E   O M I T T E D ----
<fo:flow flow-name="xsl-region-body">
			<fo:block space-after="10pt">
				Beatles
			</fo:block>
			<fo:list-block start-indent="20pt">
				<fo:list-item>
					<fo:list-item-label end-indent="label-end()">
						<fo:block font-weight="bold">
							<fo:character character="&#x2022;" />
						</fo:block>
					</fo:list-item-label>
					<fo:list-item-body start-indent="body-start()">
						<fo:block>
							<fo:basic-link 
								external-destination="url('http://www.paulmccartney.com')" 
								color="blue" text-decoration="underline">
									Paul McCartney
							</fo:basic-link>
						</fo:block>
					</fo:list-item-body>
				</fo:list-item>
				<fo:list-item>
					<fo:list-item-label end-indent="label-end()">
						<fo:block font-weight="bold">
							<fo:character character="&#x2022;" />
						</fo:block>
					</fo:list-item-label>
					<fo:list-item-body start-indent="body-start()">
						<fo:block>
							<fo:basic-link 
								external-destination="url('http://www.johnlennon.com')" 
								color="blue" text-decoration="underline">
									John Lennon
							</fo:basic-link>
						</fo:block>
					</fo:list-item-body>
				</fo:list-item>
				<fo:list-item>
					<fo:list-item-label end-indent="label-end()">
						<fo:block font-weight="bold">
							<fo:character character="&#x2022;" />
						</fo:block>
					</fo:list-item-label>
					<fo:list-item-body start-indent="body-start()">
						<fo:block>
							<fo:basic-link 
								external-destination="url('http://www.georgeharrison.com')" 
								color="blue" text-decoration="underline">
									George Harrison
							</fo:basic-link>
						</fo:block>
					</fo:list-item-body>
				</fo:list-item>
				<fo:list-item>
					<fo:list-item-label end-indent="label-end()">
						<fo:block font-weight="bold">
							<fo:character character="&#x2022;" />
						</fo:block>
					</fo:list-item-label>
					<fo:list-item-body start-indent="body-start()">
						<fo:block>
							<fo:basic-link
								external-destination="url('http://www.ringostarr.com')" 
								color="blue" text-decoration="underline">
									Ringo Starr
							</fo:basic-link>
						</fo:block>
					</fo:list-item-body>
				</fo:list-item>
				<fo:list-item>
					<fo:list-item-label end-indent="label-end()">
						<fo:block font-weight="bold">
							<fo:character character="&#x2022;" />
						</fo:block>
					</fo:list-item-label>
					<fo:list-item-body start-indent="body-start()">
						<fo:block>
							<fo:basic-link 
								external-destination="url('http://www.webucator.com')" 
								color="blue" text-decoration="underline">
									Nat Dunn
							</fo:basic-link>
						</fo:block>
					</fo:list-item-body>
				</fo:list-item>
			</fo:list-block>
		</fo:flow>
	</fo:page-sequence>
</fo:root>

The result would look like this.

Next