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

RE: Check if text is before an tag or not

Subject: RE: Check if text is before an tag or not
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Wed, 12 Nov 2003 12:08:22 -0000
xsl check if tag exists
It's a big project, and you're changing the XML a bit when the project
is nearly done?

You seem to want to process the nodes in the order in which they appear
in the source document. I'm having trouble understanding why that's a
problem. It's what <xsl:apply-templates/> does by default.

Michael Kay


> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Sebastien deprez
> Sent: 12 November 2003 11:42
> To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Check if text is before an tag or not
> 
> 
> Hey,
> 
> I have a problem with my XSL. I'm currently working on a big 
> project for the royal library in Spain. I have an XML 
> document with all the inventory's of a book. Here's a small 
> piece where the biggest problem exists:
> 
> <title TEIform="title">
>   <name reg="Séneca" type="person" role="author">Séneca</name> 
>   y 
>   <name reg="Cicerón, Marco Tulio" type="person" 
> role="author">Cicerón</name> 
>   en castellano de los oficios 
>  </title>
> 
> The problem:
> On my webpage I need to show the title of the book, with the 
> author too (all as one title). Not such a problem mainly... 
> but: If the <name>-tag comes before the actual title, it 
> should show the author first (ex: Séneca), otherwise it 
> should show the title first. (ex: Cicerón, en castellano de 
> los oficios). The above example of an XML is the hardest one: 
> here is should show: 'Sénéca y Cicerón, en castellano de los oficios.'
> 
> I really don't have any clue how to do this one, really.
> My project is mostly done, but my boss told us he changed the 
> xml a bit :-s. And within a week everything must be done over again!
> 
> Thanks alot!
> 
> friendly greetings
> Sebastien Deprez
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


 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.