Subject: Re: [xsl] creating tags around a string From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Tue, 18 Apr 2006 12:38:06 -0400 |
<AUTHOR> <name><fname>Al</fname> <lname>Stick</lname></name>, <name><fname>Tom</fname> <lname>She</lname></name>, <name><fname>Dick</fname> <lname>Burg</lname></name>, and <name><fname>Harry</fname> <lname>Ward</lname></name> </AUTHOR>
<AUTHOR> <fname>Al</fname> <lname>Stick</lname>, <fname>Tom</fname> <lname>She</lname>, <fname>Dick</fname> <lname>Burg</lname>, and <fname>Harry</fname> <lname>Ward</lname> </AUTHOR>
Good luck, Wendell
On 4/18/06, TGolshan@xxxxxxxxxxxx <TGolshan@xxxxxxxxxxxx> wrote: > Wendell, > > Thanks for the insight. Perhaps I need to explain myself a little more.
I'd recommend paying attention to Wendell. He addressed at least one of your problems. You need to think about generating elements, not "tags". The code is a bit clearer when you do:
<fname><xsl:value-of select="." /></fname>
instead of
<xsl:text> <fname></xsl:text> < xsl:value-of select="."/> <xsl:text> </fname></xsl:text>
>I am taking an InDesign inx file and trying to build some structure (ie an > XML document) that I can then use later. I am working with an army of > editors who will not style first or last name in InDesign. They will > however style every name as author, so my inx file looks like this: > > <AUTHOR>Al Stick, Tom She, Dick Burg, and Harry Ward</AUTHOR> > > and I want to add <fname> and <lname> elements to the mix. > > What is the best way to do this? I wrote the below function but realize > that this is difficult at best.
The reason you're not necessarily getting a ton of help on your question is that it's a lot deeper and more complex than any simple trick with XSLT. This mailing list is concerned with XSLT, while your problem is more a fundamental problem with markup systems and publishing....
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] creating tags around a st, Jon Gorman | Thread | RE: [xsl] creating tags around a st, Michael Kay |
Re: [xsl] creating tags around a st, Jon Gorman | Date | RE: [xsl] creating tags around a st, Michael Kay |
Month |