xsl-list
[Top] [All Lists]

Re: [xsl] Why doesn test work in one case, but not another???

2006-05-10 14:52:01
On 5/10/06, Shirley Gasch <sgasch(_at_)sindbad(_dot_)gsfc(_dot_)nasa(_dot_)gov> 
wrote:
Hi Jon,

I did try building it from scratch, but with no better result.

I need to understand better how the test works. In the example that
worked, the MssnTer is a fieldname and Y is one of the possible
values. In the one that didn't work, System is a fieldname and A is
one of the values. I tried removing the ' ', but no change. It always
falls through the test with system.

The problem is you're confusing some of the internals of Filemaker Pro
and the abilities and uses of XSLT.

I'm assuming here Filemaker Pro is working like many other database
products can do now, it takes the results of a query, produces them in
xml, then transforms the xml via xslt.

So let's imagine we have a database that returns all results in csv.

id, name
1,bob
2,henry
3,ben
4,susan

The internal process converts this too something perhaps like:

<results>
<row>
<id>1</id>
<name>bob</name>
</row>
.... and so on.

Or it could be something like
<results>
<row>
<field name="@bob">bob</field>
...
then you can apply the transform to it.

Notice you need to understand the form of the xml that the stylesheet
will apply to.  It doesn't matter that you know in the abstract in the
database it will be a field called "name".  The xslt just cares about
how the document being feed into is marked up.

Jon Gorman

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--