Click here to Skip to main content
15,920,438 members
Home / Discussions / XML / XSL
   

XML / XSL

 
AnswerRe: writing to XML Pin
Mike Ellison14-Jul-08 3:18
Mike Ellison14-Jul-08 3:18 
Questionwrong element in transformed xml Pin
AndrusM11-Jul-08 21:45
AndrusM11-Jul-08 21:45 
AnswerRe: wrong element in transformed xml Pin
Gideon Engelberth12-Jul-08 2:28
Gideon Engelberth12-Jul-08 2:28 
QuestionUse external Xml File in My external File (Import) Pin
hamedmot11-Jul-08 21:05
hamedmot11-Jul-08 21:05 
AnswerRe: Use external Xml File in My external File (Import) Pin
led mike14-Jul-08 5:57
led mike14-Jul-08 5:57 
QuestionXSLT for displaying generic XML-files Pin
Daniel Jansson10-Jul-08 20:22
Daniel Jansson10-Jul-08 20:22 
AnswerRe: XSLT for displaying generic XML-files Pin
led mike11-Jul-08 5:36
led mike11-Jul-08 5:36 
QuestionXSD Validation - Allowed characters Pin
Erik Westermann9-Jul-08 12:06
professionalErik Westermann9-Jul-08 12:06 
I’m having a problem setting up schema validation using regular expressions - I have been stuck on this for some time and would appreciate some help...

I have a set of allowed characters that I could describe using this regular expression:

[\w?\-?.?\s?\'?,?#?-[_]]


This means that I allow any alphanumeric characters and characters like dash, period, spaces, apostrophe, comma, and number (hash) symbol. The last part of the expression tries to exclude underscore since \w allows it, and my application does not like underscores.

The problem is that this is an allowed set of characters and I am using the XSD pattern facet so that I can use schema validation to find rogue characters. XSD validation fails when the expression in the pattern facet does not match. My pattern looks like this:

xs:pattern="[\w?\-?.?\s?\'?,?#?-[_]]"


This basically works except that when characters not in range are present, the expression still matches. So if I add an @ or % symbol somewhere in the data, the expression happily matches even though there is invalid data present.

I looked at groups, forward, and reverse references, conditionals, etc. I have also tried to match on characters not in the set ( like this: [^\w?\-?.?\s?\'?,?#?] ), but that does not help since the presence of disallowed characters actually causes the expression to match thereby causing schema validation to pass!

The set of allowed characters is much smaller than the set of disallowed characters, so it would not be practical to create an expression having disallowed characters.

Any advice?

Erik Westermann - wWorkflow.net - (primarily)BizTalk Consulting Services

SOA * ESB * BPI * SaaS ... forget the alphabet soup - get the main course with our consulting services!

wWorkflow.net or +1 416-809-1453



AnswerRe: XSD Validation - Allowed characters Pin
Erik Westermann10-Sep-08 4:13
professionalErik Westermann10-Sep-08 4:13 
Questionxml reading using C# Pin
Ekjon7-Jul-08 11:03
Ekjon7-Jul-08 11:03 
Questionneed to return xml by using query string in vb.net Pin
subbu.sk6-Jul-08 21:46
subbu.sk6-Jul-08 21:46 
QuestionIn <xsl:for-each/> href should create automatically links with worksheet Pin
Pushpa Setty6-Jul-08 19:17
Pushpa Setty6-Jul-08 19:17 
QuestionIXMLDOMNodePtr & IXMLDOMNode *?? Any difference?? Pin
SimplySane6-Jul-08 6:56
SimplySane6-Jul-08 6:56 
AnswerRe: IXMLDOMNodePtr & IXMLDOMNode *?? Any difference?? Pin
Christian Graus6-Jul-08 9:57
protectorChristian Graus6-Jul-08 9:57 
Questiondisplay XML in table form Pin
Y_Kaushik4-Jul-08 19:21
Y_Kaushik4-Jul-08 19:21 
QuestionHow to make conditions or filter the xml node using XSL Pin
jollymj234-Jul-08 15:14
jollymj234-Jul-08 15:14 
AnswerRe: How to make conditions or filter the xml node using XSL Pin
Riaan Lehmkuhl6-Jul-08 19:53
professionalRiaan Lehmkuhl6-Jul-08 19:53 
QuestionUsing XSLT contains() Pin
Rob Grainger4-Jul-08 5:06
Rob Grainger4-Jul-08 5:06 
QuestionColorfull string Pin
half-life2-Jul-08 19:39
half-life2-Jul-08 19:39 
AnswerRe: Colorfull string Pin
led mike3-Jul-08 6:00
led mike3-Jul-08 6:00 
GeneralRe: Colorfull string Pin
half-life3-Jul-08 6:08
half-life3-Jul-08 6:08 
Questionchange the att value and name of a node (Visual C++ && DOM - ) Pin
SimplySane2-Jul-08 7:09
SimplySane2-Jul-08 7:09 
AnswerRe: change the att value and name of a node (Visual C++ && DOM - ) Pin
led mike2-Jul-08 10:11
led mike2-Jul-08 10:11 
GeneralRe: change the att value and name of a node (Visual C++ && DOM - ) Pin
SimplySane6-Jul-08 6:18
SimplySane6-Jul-08 6:18 
GeneralRe: change the att value and name of a node (Visual C++ && DOM - ) Pin
led mike7-Jul-08 11:15
led mike7-Jul-08 11:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.