XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
John RaineySubject: Pattern issues with & < characters
Author: John Rainey
Date: 11 Jul 2006 12:48 PM
The following pattern has several issues

& causes: expected entity name for refernce error

< causes:A '<' character can not be used in attibute value, except through &lt -- see above



<xsd:pattern value=".*[^!#$.*^&*.=|\`~}{:?/><].*"/>

Postnext
Tony LavinioSubject: Pattern issues with & < characters
Author: Tony Lavinio
Date: 11 Jul 2006 01:40 PM
This is according to the XML specification.

All & literals in XSLT must be escaped as &amp;
And even in attributes, < must be escaped as &lt;

See http://www.w3.org/TR/2004/REC-xml-20040204/#NT-AttValue

Posttop
John RaineySubject: Pattern issues with & < characters
Author: John Rainey
Date: 11 Jul 2006 05:24 PM
Thank you

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.