Share

NMatrix

Subscribe

Schematron: Use of current()

You are viewing a single message from this topic. View all messages.

  1. 2005-03-16 20:11:10 UTC
    I have a schema that uses current() function that was working well, but now (it seems depending on the input xml file) fails???? Any ideas on what could be going on? My Schema is below. I did change the structure of my xml slightly.

    <schema xmlns="http://www.ascc.net/xml/schematron">
    <title>RAID Prereq's: Drive Connection Types Same</title>

    <pattern name="checkSame">
    <rule context="DriveBays/DriveBay/Drive">
    <assert test="count(//DriveBay[Drive/@ConnectionType=current()/../Drive/@ConnectionType]) = count(//DriveBay)" >
    DriveBay Drive Connection Types Should be the Same.
    </assert>
    </rule>
    </pattern>

    </schema>

    I'm really puzzled by this: Also I get weird errors in schema files complaining that a exslt function was not found on xpath i'm using a count only?

    thx kim

< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.