Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7871 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

Greetings all

I have the follow example of xml file:

<?xml version="1.0"?>

<store>

<book>

<title>The Fall</title>

<authorName>Wayne</authorname>

</book>

<book>

<title>Mysterious Ways</title>

<authorName>Stephen Gerard</authorname>

</book>

<book>

<title>Inside XSLT</title>

<authorName>David Ross</authorname>

</book>

<book>

<title>Legends of Olf the Wizard </title>

<authorName>P.Jerry</authorname>

</book>

</store>

..the question is, how can i use the XSL to output only the contents (that is, the title and authorname) for book titles Mysterious Ways and Inside XSL, without display the first and the last book titles in the XML file? Is this possible? Thanks in advance. smile.gif

  • 1 month later...
Posted

Use <xsl:if> to test for these values and only use the "matches".

This topic is 7871 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.