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

Re: Detecting a closing tag in xslt

Subject: Re: Detecting a closing tag in xslt
From: "Jon Gorman" <jonathan.gorman@xxxxxxxxx>
Date: Thu, 4 May 2006 10:20:39 -0500
jon gorman
On 5/4/06, Tech Savvy <tecsavvy@xxxxxxxxx> wrote:
Hi:

Thank you for your response. This is what I need to achieve:

My PDF looks like this after the transformation:

Ok, I've overlooked this a bit before because I tend to get sloppy with the actual name of certain concepts before, but some quick definitions:

XSL - a family of standards including XSLT and XSL-FO.

XSLT - a transformation language to convert one XML format to another.
It is NOT a HTML page, nor is it exactly like php, asp, or jsp pages
in practice.  (It might generate HTML, but the process is typically
slightly different than the other server technologies, although it
doesn' thave to be). Hence it's typically poor form to say I'll have a
"XSL page" since it's really a XSL transformation on a source document
as opposed to say, php page that generates the output from it's own
internal structure typically.

XSL-FO - A markup language to describe the visual appearence of a
document.  People often use XSLT to convert from the semantic markup
to a presentational markup.  A

XSL-FO rendering engine then can produce different visual formats from
the XSL-FO markup.  This could possible include anything from PDF, SVG
to a Microsoft Word Document.

I highy doubt your PDF would have that output ...

1. <Textfrom list1>
"END"
<graphic element should go here>

Basically, I need the line "END" after <list1> ends and before the
<graphic> element starts. I tried hardcoding this on the style sheet
but it does not work. Is there any other way to achieve it?

So whenever you see the list1 element, you want to produce certain output. You do this the exact same as any other element.

<xsl:template match="list1">
<!-- when the XSLT processor comes across a list1 element, produce the
following output -->
<Textfrom list1>text</Textfrom list1>
"END"
</xsl:template>

Not to be rude, but before answering your questions in more details,
is this for a school project?  I don't like handing students answers
that they should arrive at themselves by understanding the principles
involved.  I don't mind helping students at all.  It just seems like
you questions have revolved around something that look suspiciously
like a final project and you seem to want to find everything already
done for you.


Jon Gorman


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.