xsl-list
[Top] [All Lists]

[xsl] Validation XSLT using XSLT 1.0

2008-07-02 22:07:23
Dear All,

I am writing a validation style sheet. I am struck at following point
in my validation. Can anyone point me to solution.

1. I want to validate the @picfile value is equal to entity name and
tiff images must be equal to the actual images file name on the image
folder.

My question is how to get entity name and value in to a test.

<!ENTITY I9780073379470_A_TB004 SYSTEM "9780073379470_A_TB004.tif" NDATA TIFF>

<graphic picfile="I9780073379470_A_TB004"/>

2. In the XML file we are using named entities eg:- &nbsp; &acute;
instead of &#123; or &#x123; in XSLT how to find if the XML file
contains entities other than named entities?

3. How to find non-ascii characters in the XML file and report an
error using XSLT.

4. How to find double enters in the XML file and report an error using XSLT.

I could able to write around 45 validation points using XSLT but got
struck with these 4. Please help me resolving these issues.

Regards,
Ganesh

--~------------------------------------------------------------------
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>
--~--