Click here to Skip to main content
15,890,123 members
Home / Discussions / XML / XSL
   

XML / XSL

 
AnswerRe: want to see "<" and ">" instead of ">" and "<" Pin
harold aptroot7-Nov-08 9:17
harold aptroot7-Nov-08 9:17 
QuestionHow to handle fixing XML validation errors in C#.NET? Pin
ritatx253-Nov-08 8:20
ritatx253-Nov-08 8:20 
AnswerRe: How to handle fixing XML validation errors in C#.NET? Pin
led mike4-Nov-08 4:45
led mike4-Nov-08 4:45 
GeneralRe: How to handle fixing XML validation errors in C#.NET? Pin
ritatx254-Nov-08 6:26
ritatx254-Nov-08 6:26 
QuestionFreeThreadedDOMDocument problem of selectsinglenode Pin
Chandra-shekar-Machipeddi2-Nov-08 20:04
Chandra-shekar-Machipeddi2-Nov-08 20:04 
AnswerRe: FreeThreadedDOMDocument problem of selectsinglenode Pin
led mike3-Nov-08 5:00
led mike3-Nov-08 5:00 
GeneralRe: FreeThreadedDOMDocument problem of selectsinglenode Pin
Chandra-shekar-Machipeddi3-Nov-08 18:50
Chandra-shekar-Machipeddi3-Nov-08 18:50 
QuestionXsl problem to find correct nodes using idrefs Pin
BadKarma30-Oct-08 0:44
BadKarma30-Oct-08 0:44 
Hi,

I have a simple xml-structure to represent my bookcase.
lib
 + books
   + serie
     + book (aut: type = IDREFS)
       - title
       - pages
 + authors
   + author (id: type = ID)
     - first_name
     - last_name

It contains 2 tables, one of the authors identified with id. And a table with the books with an attribute aut pointing to one or more of the authors.
Now i want to show the series, the booktitle and the author(s). The problems is how to show the author and not just the ID in the aut attribute.

I have used a named template to find the author
<xsl:template name="author_name">
  <xsl:param name="idref"/>
  <xsl:for-each select="//author[@id=$idref]">
    <xsl:value-of select="last_name"/> 
    <xsl:value-of select="first_name"/>
  </xsl:for-each>
</xsl:template>

And I'm using it like this
<xsl:call-template name="author_name">
  <xsl:with-param name="idref" select="@aut"/>
</xsl:call-template>


And this works, BUT NOT for books written by 2 or more authors. I have tried tokenize but that function is only available in xls 2.0. And then IE has troubles with it.

Any help on this would be appreciated.

Learn from the mistakes of others, you may not live long enough to make them all yourself.

QuestionSoap Error need help pls !! Pin
purpplepink28-Oct-08 5:43
purpplepink28-Oct-08 5:43 
QuestionConverting Data from row to column wise through xsl Pin
Tarini Singh27-Oct-08 0:32
Tarini Singh27-Oct-08 0:32 
AnswerRe: Converting Data from row to column wise through xsl Pin
led mike27-Oct-08 7:11
led mike27-Oct-08 7:11 
QuestionFormating XML Output File Pin
zjaffary25-Oct-08 3:10
zjaffary25-Oct-08 3:10 
Questionxml parser Pin
jhyn21-Oct-08 1:16
jhyn21-Oct-08 1:16 
AnswerRe: xml parser Pin
led mike21-Oct-08 4:54
led mike21-Oct-08 4:54 
GeneralRe: xml parser Pin
jhyn21-Oct-08 15:42
jhyn21-Oct-08 15:42 
QuestionOOXML parsing problem Pin
don_Pardon20-Oct-08 6:39
don_Pardon20-Oct-08 6:39 
AnswerRe: OOXML parsing problem Pin
led mike20-Oct-08 6:49
led mike20-Oct-08 6:49 
GeneralRe: OOXML parsing problem Pin
don_Pardon20-Oct-08 6:57
don_Pardon20-Oct-08 6:57 
GeneralRe: OOXML parsing problem Pin
led mike20-Oct-08 7:40
led mike20-Oct-08 7:40 
GeneralRe: OOXML parsing problem Pin
don_Pardon20-Oct-08 8:24
don_Pardon20-Oct-08 8:24 
GeneralRe: OOXML parsing problem Pin
don_Pardon21-Oct-08 1:37
don_Pardon21-Oct-08 1:37 
QuestionRe: OOXML parsing problem Pin
led mike21-Oct-08 4:52
led mike21-Oct-08 4:52 
QuestionHandling singleclick and doubleclick events on same line Pin
johnalek18-Oct-08 3:46
johnalek18-Oct-08 3:46 
AnswerRe: Handling singleclick and doubleclick events on same line Pin
Ashfield20-Oct-08 9:32
Ashfield20-Oct-08 9:32 
QuestionGenerate missing XML Pin
Lea Hayes17-Oct-08 2:14
Lea Hayes17-Oct-08 2:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.