Jump to content
Server Maintenance This Week. ×

Help! About XSLT and XML Convertion


EagleBee

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

Recommended Posts

  • Newbies

Here is the xml view:

<question>This is the first question

<subquestion>How old are you?</subquestion>

<subquestion>How lone have you been here?</subquestion>

.

.

.

</question>

I met a problem. I wanna display the xml by xslt modification like the following:

Question 1

This is the first question

1)How old are you?

2)How lone have you been here?

But whatever I use <xsl:value-of select="."/> under question tag or use apply-templates, the result always like:

Question 1

This is the first question.How old are you?How lone have you been here?

1)How old are you?

2)How lone have you been here?

Is somebody that can help me, thanks a lot! (No way to change the xml view)

Link to comment
Share on other sites

you can have a loop for the /question/subquestion or use serialzing

<question>

<subquestion_1>...</subquestion_1>

due to a bug in FM6.04, you still cannot import repeating fields into FMPro by XML, try searching

http://www.filemakler.com/xml/xml_talk.html

for a workaround.

specifically, you might try importing related records using xsl:key statements

Link to comment
Share on other sites

  • 2 weeks later...

the "value-of" <question> is all of the values in the element, including the values of the children elements (<sub-question>).

Where is the XML source? and how are you trying to use it with FileMaker Pro?

Link to comment
Share on other sites

This topic is 7671 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.